Skip to content

Commit

Permalink
add local test
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosss committed Oct 17, 2024
1 parent a1aaf46 commit e8f0b94
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ on:

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-13, macos-14] currently only works on Linux
os: [ubuntu-latest]
name: Build wheels
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
Expand All @@ -22,3 +18,40 @@ jobs:

- name: Build wheels
uses: pypa/[email protected]

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-ubuntu-latest
path: wheelhouse/*.whl

run_tests:
name: Run tests locally
runs-on: ubuntu-latest
needs: build_wheels
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Install wheel
run: pip install wheel

- name: Install locally
run: pip install dist/swisspair-*.whl

- name: Run tests
run: pytest

0 comments on commit e8f0b94

Please sign in to comment.