Skip to content

Commit 2c03801

Browse files
Run CI tests on windows and macos
1 parent e39a86a commit 2c03801

1 file changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
run: |
3636
uv run ruff format --check .
3737
38-
- name: Run pytest
39-
env:
40-
QT_QPA_PLATFORM: offscreen
41-
run: |
42-
uv run pytest --cov-fail-under=48
43-
4438
type-check:
4539
name: Type Check
4640
runs-on: ubuntu-latest
@@ -63,3 +57,34 @@ jobs:
6357
run: |
6458
uv run ty check .
6559
60+
test:
61+
name: Tests (${{ matrix.os }})
62+
runs-on: ${{ matrix.os }}
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
include:
67+
- os: ubuntu-latest
68+
- os: windows-latest
69+
# Apple Silicon (arm64); see https://github.com/actions/runner-images
70+
- os: macos-14
71+
72+
steps:
73+
- name: Checkout repository
74+
uses: actions/checkout@v6
75+
76+
- name: Set up uv
77+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57
78+
with:
79+
python-version: "3.14"
80+
enable-cache: true
81+
82+
- name: Sync dependencies
83+
run: |
84+
uv sync --locked --dev
85+
86+
- name: Run pytest
87+
env:
88+
QT_QPA_PLATFORM: offscreen
89+
run: |
90+
uv run pytest --cov-fail-under=48

0 commit comments

Comments
 (0)