Added build of pure py wheels to pipeline #157
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
name: Build primary wheels | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build primary wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
cibw_archs: "native" | |
- os: windows-latest | |
cibw_archs: "native" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS: ${{ matrix.cibw_archs }} | |
CIBW_SKIP: "cp311-* cp312-* pp*" | |
CIBW_TEST_REQUIRES: pytest | |
CIBW_TEST_COMMAND: > | |
python -X faulthandler {package}/test/debug.py && | |
python -X faulthandler -m pytest -p no:faulthandler -s {package} | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
test_pure_py: | |
name: Test pure py | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.6" | |
- name: Install dependencies | |
run: pip install -U pip setuptools wheel pytest | |
- name: Install module | |
run: FROZENDICT_PURE_PY=1 python setup.py install | |
- name: Test with pytest | |
run: pytest | |
build_pure_py: | |
name: Build pure py wheels | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
tag: [py311, py312, py313] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.11" | |
- name: Install dependencies | |
run: pip install -U pip setuptools wheel | |
- name: Build module | |
run: FROZENDICT_PURE_PY=1 python setup.py bdist_wheel | |
- name: Change tag to wheel | |
run: python -m wheel tags --python-tag=${{ matrix.tag }} --remove dist/* | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./dist/* |