1
Fork 0

ci: add granular github actions for linting and testing

This commit is contained in:
Tibo De Peuter 2026-03-21 16:05:44 +01:00
parent ea05ea9367
commit e18ee3bb73
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 50 additions and 0 deletions

21
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Lint
on:
pull_request:
branches:
- main
- dev
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Ruff check
uses: astral-sh/ruff-action@v1
with:
args: "check"
- name: Run Ruff format check
uses: astral-sh/ruff-action@v1
with:
args: "format --check"

29
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Test
on:
pull_request:
branches:
- main
- dev
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
- name: Setup python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --frozen
- name: Run tests with pytest
run: uv run pytest tests/