Skip to content

Commit 2807b7a

Browse files
author
CoderDeltaLAN
committed
ci: full matrix (3.11/3.12, ubuntu/windows) + ruff + black + pytest + mypy
1 parent d2ab63a commit 2807b7a

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,24 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
noop:
16+
python:
1717
if: ${{ (github.event_name == 'push' && startsWith(github.ref,'refs/heads/main')) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name,'ready')) }}
18-
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, windows-latest]
21+
python-version: ['3.11','3.12']
22+
runs-on: ${{ matrix.os }}
23+
env:
24+
PYTHONPATH: src
1925
steps:
2026
- uses: actions/checkout@v4
21-
- run: echo "CI OK"
27+
- uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix['python-version'] }}
30+
- uses: abatilo/actions-poetry@v3
31+
- run: poetry install --no-interaction
32+
- run: poetry run ruff check .
33+
- run: poetry run ruff format --check .
34+
- run: poetry run black --check .
35+
- run: PYTHONPATH=src poetry run pytest -q
36+
- run: poetry run mypy .

0 commit comments

Comments
 (0)