Skip to content

build(deps): bump r2r from 0.9.2 to 0.9.3 #17

build(deps): bump r2r from 0.9.2 to 0.9.3

build(deps): bump r2r from 0.9.2 to 0.9.3 #17

Workflow file for this run

name: Python
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
pull_request:
release:
types: [published]
workflow_dispatch:
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
PYTHON_VERSION: "3.10"
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.event_name == 'push'}}
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: pip install
run: pip install .[tests]
- name: pytest
run: pytest
wheels_sdist:
if: ${{ github.event_name == 'release' }}
needs: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
wheels_linux:
if: ${{ github.event_name == 'release' }}
needs: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
pypi_release:
permissions:
contents: read
if: ${{ github.event_name == 'release' }}
needs:
- wheels_sdist
- wheels_linux
runs-on: ubuntu-latest
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Download wheels
if: ${{ env.MATURIN_PYPI_TOKEN != '' }}
uses: actions/download-artifact@v4
with:
name: wheels
- name: Publish to PyPI
if: ${{ env.MATURIN_PYPI_TOKEN != '' }}
uses: PyO3/maturin-action@v1
with:
command: upload
args: --skip-existing *