Skip to content

Commit

Permalink
gh-actions: build wheels for MS Windows as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 24, 2024
1 parent 43043b6 commit 5df627a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ jobs:
name: artifact-source
path: dist/*.tar.gz

build_wheels_macos:
build_wheels_nonlinux:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [macos-13, macos-14]
os: [macos-13, macos-14, windows-latest]
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name != 'repository_dispatch' }}
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ skip = "pp*"
build-verbosity = "1"
environment = { SCHEMA_SALAD_USE_MYPYC="1", MYPYPATH="$(pwd)/mypy-stubs" }

[tool.cibuildwheel.windows]
test-command = "python -m pytest -n 2 --junitxml={project}/test-results/junit_windows.xml --pyargs schema_salad"
environment = { SCHEMA_SALAD_USE_MYPYC="1", MYPYPATH="%{CD}\\mypy-stubs" }

[tool.black]
line-length = 100
target-version = [ "py39" ]

0 comments on commit 5df627a

Please sign in to comment.