Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
include:
- python-version: "3.8"
cmake-extras: "-DCMAKE_CXX_STANDARD=17"
- python-version: "3.10-dev"

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

Expand Down Expand Up @@ -90,12 +91,11 @@ jobs:
with:
submodules: true

- uses: pypa/cibuildwheel@v1.12.0
- uses: pypa/cibuildwheel@v2.0.0a4
env:
CIBW_BUILD: cp38-win_amd64 cp36-manylinux_i686 cp37-macosx_x86_64
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {project}/tests
CIBW_BUILD: cp38-win_amd64 cp310-manylinux_i686 cp37-macosx_x86_64
CIBW_BUILD_VERBOSITY: 1
CIBW_PRERELEASE_PYTHONS: 1

- uses: actions/upload-artifact@v2
with:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ on:
env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}
CIBW_ENVIRONMENT: "PIP_ONLY_BINARY=numpy SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_TEST_SKIP: "pp*macos* pp*win* pp27-* *universal2:arm64"

jobs:
build_sdist:
Expand All @@ -34,7 +31,7 @@ jobs:
submodules: true

- name: Build SDist
run: pipx run --spec build pyproject-build --sdist
run: pipx run build --sdist

- name: Check metadata
run: pipx run twine check dist/*
Expand All @@ -61,7 +58,7 @@ jobs:
with:
platforms: all

- uses: pypa/cibuildwheel@v1.12.0
- uses: pypa/cibuildwheel@v2.0.0a4
env:
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down Expand Up @@ -113,7 +110,7 @@ jobs:
with:
submodules: true

- uses: pypa/cibuildwheel@v1.12.0
- uses: pypa/cibuildwheel@v2.0.0a4
env:
CIBW_BUILD: ${{ matrix.build }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ ignore = [
"src/boost_histogram/version.py",
"tests/.pytest_cache/**",
]


[tool.cibuildwheel]
test-extras = "test"
test-command = "pytest {project}/tests"
test-skip = ["pp*macos*", "pp*win*", "*universal2:arm64"]