diff --git a/.forgejo/workflows/codespell.yml b/.forgejo/workflows/codespell.yml new file mode 100644 index 0000000..93e4437 --- /dev/null +++ b/.forgejo/workflows/codespell.yml @@ -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 diff --git a/.github/workflows/run_tests.yaml b/.forgejo/workflows/run_tests.yaml similarity index 64% rename from .github/workflows/run_tests.yaml rename to .forgejo/workflows/run_tests.yaml index fc2aaa3..1716e7e 100644 --- a/.github/workflows/run_tests.yaml +++ b/.forgejo/workflows/run_tests.yaml @@ -8,28 +8,24 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' + uses: actions/setup-python@v5 + + - name: Install uv + uses: astral-sh/setup-uv@v6 - name: Install hatch - run: | - pip install hatch + run: uv tool install hatch - - name: Install subdatasets - run: | - git submodule update --init --recursive - - - name: run tests + - name: Run tests run: | hatch run tests:run \ --ignore=dump_things_service/tests/test_generators.py \ --ignore=dump_things_service/tests/test_ifabsent_patch.py - - name: run generator tests + - name: Run generator tests run: | hatch run tests:run dump_things_service/tests/test_generators.py - - name: run ifabsent-patch tests + - name: Run ifabsent-patch tests run: | hatch run tests:run dump_things_service/tests/test_ifabsent_patch.py diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index e21712e..0000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -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