Skip to content

Commit

Permalink
CI: Test once when building wheels
Browse files Browse the repository at this point in the history
cibuildwheel tries to find tests automatically and run with pytest. This
bypasses some code for test verbosity, so better to run tests in the
dedicated test step. This will help us see what tests fail
  • Loading branch information
cookpa committed May 23, 2024
1 parent dd8035e commit d39cbae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
CIBW_BUILD: cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "cp*" # We will test during install and test step

# Include latest Python beta
CIBW_PRERELEASE_PYTHONS: True
Expand Down Expand Up @@ -175,9 +176,10 @@ jobs:
- name: Install and test (Windows)
if: startsWith(matrix.os, 'windows-')
shell: bash
run: |
python -m pip install --find-links=.\wheelhouse\cp${{ matrix.cibw_python }}-${{matrix.platform_id }} antspyx
tests\run_tests.ps1
python -m pip install --find-links=./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }} antspyx
bash tests/run_tests.sh
- uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/wheels_faster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
CIBW_BUILD: cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "cp*" # We will test during install and test step

# Include latest Python beta
CIBW_PRERELEASE_PYTHONS: True
Expand Down

0 comments on commit d39cbae

Please sign in to comment.