Add dev deps #112
Workflow file for this run
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: Wheel Builds | |
on: | |
push: | |
branches: [ 'musl-build' ] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.11' | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install cibuildwheel==2.16.1 twine | |
- name: Build wheels | |
run: | | |
python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BEFORE_ALL_LINUX: "apk -X http://dl-cdn.alpinelinux.org/alpine/edge/main upgrade && apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/main rust cargo openssl-dev ca-certificates py3-setuptools" | |
CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true"' | |
CIBW_MUSLLINUX_X86_64_IMAGE: quay.io/pypa/musllinux_1_1_x86_64:latest | |
CIBW_SKIP: cp36-* pp* *win32 *macosx* *manylinux* | |
CIBW_BEFORE_BUILD: apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache py3-setuptools-rust py3-numpy py3-semantic-version py3-tomli | |
CIBW_TEST_REQUIRES: | |
CIBW_BUILD_FRONTEND: "pip" | |
CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/rustworkx_tests | |
CIBW_TEST_SKIP: cp312-* cp311-* cp310-* cp39-* cp38-* | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
- name: Upload to PyPI | |
run: twine upload ./wheelhouse/*.whl | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
TWINE_USERNAME: retworkx-ci |