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