Skip to content

Commit

Permalink
Use CIBW_SKIP
Browse files Browse the repository at this point in the history
i686 fails pytest with:

/project/test/python_magic_test.py:54: in assert_values
      self.assertIn(value, expected_value)
  E   AssertionError: 'gzip compressed data, was test, last modified: *Invalid datetime*, from Unix' not found in ('gzip compressed data, was test, from Unix, last modified: Sun Jun 29 01:32:52 2008', 'gzip compressed data, was test, last modified: Sun Jun 29 01:32:52 2008, from Unix', 'gzip compressed data, was test, last modified: Sun Jun 29 01:32:52 2008, from Unix, original size 15', 'gzip compressed data, was test, last modified: Sun Jun 29 01:32:52 2008, from Unix, original size modulo 2^32 15', 'gzip compressed data, was test, last modified: Sun Jun 29 01:32:52 2008, from Unix, truncated')
  • Loading branch information
ddelange committed May 6, 2024
1 parent 2e6104e commit ca4def3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ jobs:
- run: pip install cibuildwheel==2.17.0 # sync version with pypa/cibuildwheel below
- id: set-matrix
env:
# only mention one (trivial) python version, as py2.py3 wheels only need to be build once per arch
CIBW_PROJECT_REQUIRES_PYTHON: '==3.12.*'
# skip PyPy wheels for now, and skip i686 wheels because pytest is failing
CIBW_SKIP: pp* *i686
run: |
MATRIX_INCLUDE=$(
{
cibuildwheel --print-build-identifiers --platform linux --arch all | grep cp | jq -nRc '{"only": inputs, "os": "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos --arch x86_64 | grep cp | jq -nRc '{"only": inputs, "os": "macos-13"}' \
&& cibuildwheel --print-build-identifiers --platform macos --arch arm64 | grep cp | jq -nRc '{"only": inputs, "os": "macos-14"}' \
&& cibuildwheel --print-build-identifiers --platform windows --arch x86,AMD64 | grep cp | jq -nRc '{"only": inputs, "os": "windows-latest"}'
cibuildwheel --print-build-identifiers --platform linux --arch all | jq -nRc '{"only": inputs, "os": "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos --arch x86_64 | jq -nRc '{"only": inputs, "os": "macos-13"}' \
&& cibuildwheel --print-build-identifiers --platform macos --arch arm64 | jq -nRc '{"only": inputs, "os": "macos-14"}' \
&& cibuildwheel --print-build-identifiers --platform windows --arch x86,AMD64 | jq -nRc '{"only": inputs, "os": "windows-latest"}'
} | jq -sc
)
echo "include=$MATRIX_INCLUDE" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit ca4def3

Please sign in to comment.