Skip to content

Adding cross_viz, path_viz and cylinder_viz #105

Adding cross_viz, path_viz and cylinder_viz

Adding cross_viz, path_viz and cylinder_viz #105

Workflow file for this run

name: Build
on:
release:
types:
- published
push:
branches:
- 'master' # Sur tout push, toutes branches
env:
CIBW_SKIP: "*i686 *musl* *armv7* *ppc64* *s390*"
CIBW_REPAIR_WHEEL_COMMAND: ""
CIBW_TEST_REQUIRES: matplotlib
CIBW_TEST_COMMAND: "python -m unittest discover python/tests/ \"*_test.py\""
jobs:
build_wheels:
name: Wheel ${{ matrix.os }}, ${{ matrix.pyver }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, ubuntu-24.04-arm, macos-13]
pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
exclude:
- os: macos-latest
pyver: cp38
steps:
- uses: actions/checkout@v4
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==3.0.0b1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_BUILD: ${{ matrix.pyver }}-*
# ...
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ matrix.pyver }}
path: ./wheelhouse/*.whl
build_sdist:
if: github.event_name == 'release' && github.event.action == 'published'
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
upload_pypi:
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1