Skip to content

Commit 1d36f6b

Browse files
committed
Fix CI
1 parent c4d0bd8 commit 1d36f6b

2 files changed

Lines changed: 31 additions & 15 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
name: Build wheels on ${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
1718

1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
with:
2122
submodules: true
2223

@@ -25,31 +26,32 @@ jobs:
2526
with:
2627
output-dir: wheelhouse
2728

29+
- name: Verify clean directory
30+
run: git diff --exit-code
31+
shell: bash
32+
2833
- uses: actions/upload-artifact@v4
2934
with:
30-
path: ./wheelhouse/*.whl
35+
name: cibw-wheels-${{ matrix.os }}
36+
path: wheelhouse/*.whl
3137

3238
build_sdist:
3339
name: Build SDist
3440
runs-on: ubuntu-latest
3541
steps:
36-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
3743
with:
3844
submodules: true
3945

40-
- uses: actions/setup-python@v4
41-
42-
- name: Install deps
43-
run: python -m pip install twine build
44-
4546
- name: Build SDist
46-
run: python -m build -s
47+
run: pipx run build --sdist
4748

4849
- name: Check metadata
49-
run: twine check dist/*
50+
run: pipx run twine check dist/*
5051

5152
- uses: actions/upload-artifact@v4
5253
with:
54+
name: cibw-sdist
5355
path: dist/*.tar.gz
5456

5557
upload_all:
@@ -59,14 +61,17 @@ jobs:
5961
if: github.event_name == 'release' && github.event.action == 'published'
6062

6163
steps:
62-
- uses: actions/setup-python@v4
64+
- uses: actions/setup-python@v5
65+
with:
66+
python-version: "3.x"
6367

64-
- uses: actions/download-artifact@v2
68+
- uses: actions/download-artifact@v4
6569
with:
66-
name: artifact
70+
pattern: cibw-*
71+
merge-multiple: true
6772
path: dist
6873

69-
- uses: pypa/gh-action-pypi-publish@v1.4.2
74+
- uses: pypa/gh-action-pypi-publish@release/v1
7075
with:
7176
user: __token__
7277
password: ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ build-dir = "build/{wheel_tag}"
3333
test-command = "pytest {package}/tests"
3434
# will install pytest and other packages in the `test` extra
3535
test-extras = ["test"]
36+
# Skip testing of PyPy and 32-bit wheels
37+
test-skip = ["pp*", "*win32", "*i686", "*-musllinux*"]
3638

3739
# Needed for full C++17 support
3840
[tool.cibuildwheel.macos.environment]
39-
MACOSX_DEPLOYMENT_TARGET = "10.14"
41+
MACOSX_DEPLOYMENT_TARGET = "10.14"
42+
43+
# Install OpenBLAS on linux (required for scipy in tests)
44+
[tool.cibuildwheel.linux]
45+
before-all = "yum install -y openblas-devel"
46+
47+
# Skip OpenBLAS installation on untested variants
48+
[[tool.cibuildwheel.overrides]]
49+
select = ["*i686", "*-musllinux*"]
50+
before-all = ""

0 commit comments

Comments
 (0)