Skip to content

Commit

Permalink
CI: Reduce build matrix, add test matrix [build wheels]
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 11, 2023
1 parent 820c47c commit a7a4b31
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ jobs:
fail-fast: false
matrix:
buildplat:
- [ubuntu-20.04, manylinux_x86_64]
- [ubuntu-20.04, musllinux_x86_64]
- [macos-12, macosx_*]
- [windows-2019, win_amd64]
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
include:
# Manylinux builds are cheap, do all in one
- { buildplat: ["ubuntu-20.04", "manylinux_x86_64"], python: "*" }
python: ["cp312"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -108,9 +106,38 @@ jobs:
- name: Run tests
run: pytest -v --pyargs nitime

test-wheel:
name: Test wheel
needs: [build-wheel]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/download-artifact@v3
with:
path: dist/
- name: Consolidate and list wheels
run: |
mkdir wheelhouse
mv dist/*/*.whl wheelhouse
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install wheel
run: pip install --find-links ./wheelhouse --pre nitime
- run: python -c 'import nitime; print(nitime.__version__)'
- name: Install pytest
run: pip install pytest
- name: Run tests
run: pytest -v --pyargs nitime

pre-publish:
runs-on: ubuntu-latest
needs: [test-sdist, build-wheel]
needs: [test-sdist, test-wheel]
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit a7a4b31

Please sign in to comment.