Skip to content

Commit 5df627a

Browse files
committed
gh-actions: build wheels for MS Windows as well
1 parent 43043b6 commit 5df627a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ jobs:
8383
name: artifact-source
8484
path: dist/*.tar.gz
8585

86-
build_wheels_macos:
86+
build_wheels_nonlinux:
8787
name: Build wheels on ${{ matrix.os }}
8888
runs-on: ${{ matrix.os }}
8989
strategy:
9090
matrix:
9191
# macos-13 is an intel runner, macos-14 is apple silicon
92-
os: [macos-13, macos-14]
92+
os: [macos-13, macos-14, windows-latest]
9393
steps:
9494
- uses: actions/checkout@v4
9595
if: ${{ github.event_name != 'repository_dispatch' }}

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ skip = "pp*"
2424
build-verbosity = "1"
2525
environment = { SCHEMA_SALAD_USE_MYPYC="1", MYPYPATH="$(pwd)/mypy-stubs" }
2626

27+
[tool.cibuildwheel.windows]
28+
test-command = "python -m pytest -n 2 --junitxml={project}/test-results/junit_windows.xml --pyargs schema_salad"
29+
environment = { SCHEMA_SALAD_USE_MYPYC="1", MYPYPATH="%{CD}\\mypy-stubs" }
30+
2731
[tool.black]
2832
line-length = 100
2933
target-version = [ "py39" ]

0 commit comments

Comments
 (0)