Skip to content

Commit

Permalink
Test each wheel with the help of cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Jan 10, 2024
1 parent cbb1d14 commit 9d36270
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cffi>=1.0 pytest wheel
- name: Build Wheels
pip install cffi>=1.0 cibuildwheel wheel
- name: Build and test wheels
env:
CIBW_ARCHS: "auto64"
CIBW_SKIP: "cp36-* cp37-* cp312-*"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/tests"
run: |
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
- name: Run Tests
run: |
python_version_tag=cp${{ matrix.python-version }}-cp${{ matrix.python-version }}*
platform_tag=$(if [ "${{ matrix.os }}" = "windows-latest" ]; then echo "win_amd64"; else echo "manylinux_x86_64"; fi)
wheel_to_install=$(ls wheelhouse/*$python_version_tag*$platform_tag.whl)
pip install $wheel_to_install
pytest
- name: Save Wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 9d36270

Please sign in to comment.