Skip to content

Commit

Permalink
ci: nicer setup
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Mar 31, 2024
1 parent 8d0622c commit 0d551f1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
pipx run nox -s pylint
cmake:
name: CMake 🐍 ${{ matrix.python-version }}
runs-on: ubuntu-latest
env:
PIP_ONLY_BINARY: numpy
Expand All @@ -66,8 +67,6 @@ jobs:
- python-version: "3.8"
cmake-extras: "-DCMAKE_CXX_STANDARD=17"

name: CMake Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -93,7 +92,7 @@ jobs:
run: python -m pytest -ra

build_wheels:
name: Wheels on ${{ matrix.os }}
name: ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -130,9 +129,19 @@ jobs:
path: wheelhouse/*
name: test-wheels-${{ strategy.job-index }}

# Pipx is either missing or broken on macos-14 runners ATM
- name: Install twine
run: pip install twine

- name: Check wheels
run: twine check wheelhouse/*
shell: bash

pass:
if: always()
needs: [clang-tidy, pylint, cmake, build_wheels]
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 0d551f1

Please sign in to comment.