-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31dd26d
commit 2acc023
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build and Test manylinux wheels | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build_wheels: | ||
uses: RalfG/[email protected] | ||
with: | ||
python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311' | ||
|
||
test_wheels: | ||
name: Test wheels on Python ${{ matrix.python }}-${{ matrix.platform_id }}-${{ matrix.manylinux_image }} | ||
runs-on: ${{ matrix.os }} | ||
needs: build_wheels | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python: 39 | ||
- os: ubuntu-latest | ||
python: 310 | ||
- os: ubuntu-latest | ||
python: 311 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
# to supply options, put them in 'env', like: | ||
env: | ||
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} | ||
CIBW_ARCHS: all | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_TEST_COMMAND: "pytest {project}/tests" | ||
- name: Test wheels | ||
continue-on-error: true | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pipx | ||
python -m pip install nox | ||
python -m nox --sessions test_wheel | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl |
2 changes: 1 addition & 1 deletion
2
.github/workflows/buildtest_wheels.yml → ...lows/buildtest_windows_mac_x86_wheels.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build and Test wheels | ||
name: Build and Test Windows and Mac x86 wheels | ||
|
||
on: workflow_dispatch | ||
|
||
|