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 7ec3cce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 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) }}
5 changes: 0 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ concurrency:

env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}
CIBW_ENVIRONMENT: "PIP_PREFER_BINARY=1"

jobs:
build_sdist:
Expand Down Expand Up @@ -105,10 +104,6 @@ jobs:
arch: auto64
build: "*musllinux*"

- os: macos-latest
arch: auto64
build: cp37*

steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ test-skip = [
"pp38-*",
"pp310-*",
"*universal2:arm64",
"cp38-macosx_*:arm64",
"cp*-*musllinux*", # segfault
]
environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
environment.PIP_ONLY_BINARY = "numpy"
environment.PIP_PREFER_BINARY = "1"


[tool.pylint]
Expand Down

0 comments on commit 7ec3cce

Please sign in to comment.