Skip to content

Commit fa0f775

Browse files
author
CoderDeltaLAN
committed
ci: restore linux job names and set PYTHONPATH=src (keep windows optional)
1 parent 2640e04 commit fa0f775

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/ci.yml

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

1515
jobs:
16-
python:
17-
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')) }}
16+
linux:
17+
name: linux (py=${{ matrix.python-version }})
1818
runs-on: ubuntu-latest
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ['3.11','3.12']
22+
python-version: ["3.11","3.12"]
23+
env:
24+
PYTHONPATH: src
2325
steps:
2426
- uses: actions/checkout@v4
2527
- uses: actions/setup-python@v5
@@ -31,3 +33,21 @@ jobs:
3133
- run: black --check .
3234
- run: pytest -q
3335
- run: mypy .
36+
37+
windows_optional:
38+
name: windows (optional)
39+
runs-on: windows-latest
40+
continue-on-error: true
41+
env:
42+
PYTHONPATH: src
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.12"
48+
- run: python -m pip install -U pip
49+
- run: pip install ruff black pytest mypy
50+
- run: ruff check .
51+
- run: black --check .
52+
- run: pytest -q
53+
- run: mypy .

0 commit comments

Comments
 (0)