Skip to content

ci(pypi): Remove MATURIN_PYPI_TOKEN since trusted publishing is used … #352

ci(pypi): Remove MATURIN_PYPI_TOKEN since trusted publishing is used …

ci(pypi): Remove MATURIN_PYPI_TOKEN since trusted publishing is used … #352

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
# Prevent Git from changing LF to CRLF, which affects test fixtures.
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
# Need feature(stdsimd) until config-rs can be upgraded.
# https://github.com/mehcode/config-rs/issues/531
# https://github.com/rust-lang/rust/issues/27731#event-11707724027
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
key: ${{ matrix.os }}
# https://github.com/Swatinem/rust-cache/issues/93#issuecomment-1321064841
- run: cargo update
- uses: taiki-e/install-action@cargo-llvm-cov
- env:
RUSTFLAGS: -Zon-broken-pipe=kill
run: cargo llvm-cov --lcov --output-path .coverage --no-cfg-coverage-nightly
- if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install .[test]
- run: pytest -W error