@@ -14,37 +14,35 @@ concurrency:
1414
1515jobs :
1616 linux :
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')) }}
17+ name : linux (py= ${{ matrix.python-version }})
1818 runs-on : ubuntu-latest
1919 strategy :
20+ fail-fast : false
2021 matrix :
21- python-version : ['3.11','3.12']
22- name : linux (py=${{ matrix.python-version }})
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
26- with :
27- python-version : ${{ matrix.python-version }}
28+ with : { python-version: ${{ matrix.python-version }} }
2829 - run : python -m pip install -U pip
2930 - run : pip install ruff black pytest mypy
3031 - run : ruff check .
3132 - run : black --check .
3233 - run : pytest -q
3334 - run : mypy .
3435
35- windows :
36- 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')) }}
36+ windows_optional :
37+ name : windows (optional)
3738 runs-on : windows-latest
3839 continue-on-error : true
39- strategy :
40- matrix :
41- python-version : ['3.11','3.12']
42- name : windows (py=${{ matrix.python-version }})
40+ env :
41+ PYTHONPATH : src
4342 steps :
4443 - uses : actions/checkout@v4
4544 - uses : actions/setup-python@v5
46- with :
47- python-version : ${{ matrix.python-version }}
45+ with : { python-version: "3.12" }
4846 - run : python -m pip install -U pip
4947 - run : pip install ruff black pytest mypy
5048 - run : ruff check .
0 commit comments