From a58a8ed21eb9011bf7dd35f3d3878351852b8028 Mon Sep 17 00:00:00 2001 From: Thomas Finnie Date: Sat, 3 Aug 2024 11:48:31 +0100 Subject: [PATCH] Fix the python versions for windows wheels --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8dbde7a..1b986db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: pip install . - name: Run tests - run: python -m unittest discover --start-directory tests + run: python -m unittest discover -s {project}/tests build_wheels: name: Build wheels on ${{ matrix.os }} @@ -77,16 +77,16 @@ jobs: include: # Window 64 bit - os: windows-latest - python: 39 + python: cp39 platform_id: win_amd64 - os: windows-latest - python: 310 + python: cp310 platform_id: win_amd64 - os: windows-latest - python: 311 + python: cp311 platform_id: win_amd64 - os: windows-latest - python: 312 + python: cp312 platform_id: win_amd64 # # Linux 64 bit manylinux2014 @@ -128,6 +128,7 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse env: CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform_id }}* + CIBW_TEST_COMMAND: python -W default -m unittest discover -s {project}/tests - uses: actions/upload-artifact@v4