Move from github workflows to forgejo workflows #194

Merged
cmo merged 2 commits from move-workflow-to-forgejo into master 2026-02-02 07:29:53 +00:00
3 changed files with 30 additions and 37 deletions

View 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

View file

@ -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

View file

@ -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