Move from github workflows to forgejo workflows #194
3 changed files with 30 additions and 37 deletions
22
.forgejo/workflows/codespell.yml
Normal file
22
.forgejo/workflows/codespell.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Codespell configuration is within `pyproject.toml`
|
||||||
|
---
|
||||||
|
name: Codespell
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
codespell:
|
||||||
|
name: Check for spelling errors
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Codespell
|
||||||
|
uses: codespell-project/actions-codespell@v2
|
||||||
|
with:
|
||||||
|
ignore_words_list: crate
|
||||||
|
|
@ -8,28 +8,24 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
|
||||||
python-version: '3.12'
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
- name: Install hatch
|
- name: Install hatch
|
||||||
run: |
|
run: uv tool install hatch
|
||||||
pip install hatch
|
|
||||||
|
|
||||||
- name: Install subdatasets
|
- name: Run tests
|
||||||
run: |
|
|
||||||
git submodule update --init --recursive
|
|
||||||
|
|
||||||
- name: run tests
|
|
||||||
run: |
|
run: |
|
||||||
hatch run tests:run \
|
hatch run tests:run \
|
||||||
--ignore=dump_things_service/tests/test_generators.py \
|
--ignore=dump_things_service/tests/test_generators.py \
|
||||||
--ignore=dump_things_service/tests/test_ifabsent_patch.py
|
--ignore=dump_things_service/tests/test_ifabsent_patch.py
|
||||||
|
|
||||||
- name: run generator tests
|
- name: Run generator tests
|
||||||
run: |
|
run: |
|
||||||
hatch run tests:run dump_things_service/tests/test_generators.py
|
hatch run tests:run dump_things_service/tests/test_generators.py
|
||||||
|
|
||||||
- name: run ifabsent-patch tests
|
- name: Run ifabsent-patch tests
|
||||||
run: |
|
run: |
|
||||||
hatch run tests:run dump_things_service/tests/test_ifabsent_patch.py
|
hatch run tests:run dump_things_service/tests/test_ifabsent_patch.py
|
||||||
25
.github/workflows/codespell.yml
vendored
25
.github/workflows/codespell.yml
vendored
|
|
@ -1,25 +0,0 @@
|
||||||
# Codespell configuration is within pyproject.toml
|
|
||||||
---
|
|
||||||
name: Codespell
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
codespell:
|
|
||||||
name: Check for spelling errors
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Annotate locations with typos
|
|
||||||
uses: codespell-project/codespell-problem-matcher@v1
|
|
||||||
- name: Codespell
|
|
||||||
uses: codespell-project/actions-codespell@v2
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue