From 910dd54ea3b9529fc9e31903df6c907d381e7115 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Thu, 24 Oct 2024 13:23:03 +0200 Subject: [PATCH] gh-actions: build wheels for MS Windows as well --- .github/workflows/wheels.yml | 4 ++-- pyproject.toml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5cf901b7..67c1d8d4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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' }} diff --git a/pyproject.toml b/pyproject.toml index 155a8210..e5191c5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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="$(pwd)\\mypy-stubs" } + [tool.black] line-length = 100 target-version = [ "py39" ]