Skip to content

Commit 38d173e

Browse files
author
CoderDeltaLAN
committed
ci: add Windows as optional (continue-on-error) and keep Linux required
1 parent d2ab63a commit 38d173e

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/ci.yml

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

1515
jobs:
16-
noop:
16+
linux:
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')) }}
1818
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
python-version: ['3.11','3.12']
22+
name: linux (py=${{ matrix.python-version }})
1923
steps:
2024
- uses: actions/checkout@v4
21-
- run: echo "CI OK"
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- run: python -m pip install -U pip
29+
- run: pip install ruff black pytest mypy
30+
- run: ruff check .
31+
- run: black --check .
32+
- run: pytest -q
33+
- run: mypy .
34+
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')) }}
37+
runs-on: windows-latest
38+
continue-on-error: true
39+
strategy:
40+
matrix:
41+
python-version: ['3.11','3.12']
42+
name: windows (py=${{ matrix.python-version }})
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: ${{ matrix.python-version }}
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)