Skip to content

docs(python): don't break Rust test #76

docs(python): don't break Rust test

docs(python): don't break Rust test #76

Workflow file for this run

name: python
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- uses: PyO3/maturin-action@v1
with:
manylinux: auto
command: build
args: --features python --release --sdist -o dist
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
name: wheels-linux
path: dist
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- uses: PyO3/maturin-action@v1
with:
command: build
args: --features python --release -o dist
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
name: wheels-windows
path: dist
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- uses: PyO3/maturin-action@v1
with:
command: build
args: --features python --release -o dist
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
name: wheels-macos
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs:
- macos
- windows
- linux
if: "startsWith(github.ref, 'refs/tags/')"
permissions:
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v7
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v4
with:
subject-path: "wheels-*/*"
- name: Publish to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*