Skip to content

Switch to copier template #40

Switch to copier template

Switch to copier template #40

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
lint:
uses: ./.github/workflows/_tox.yml
with:
tox: pre-commit,type-checking
test:
strategy:
matrix:
runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
python-version: ["3.11", "3.12", "3.13"]
include:
# Include one that runs in the dev environment
- runs-on: "ubuntu-latest"
python-version: "dev"
fail-fast: false
uses: ./.github/workflows/_test.yml
with:
runs-on: ${{ matrix.runs-on }}
python-version: ${{ matrix.python-version }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
container:
needs: test
if: always()
uses: ./.github/workflows/_container.yml
with:
publish: ${{ needs.test.result == 'success' }}
permissions:
contents: read
packages: write
docs:
uses: ./.github/workflows/_docs.yml
dist:
uses: ./.github/workflows/_dist.yml
pypi:
needs: [dist, test]
if: github.ref_type == 'tag'
uses: ./.github/workflows/_pypi.yml
permissions:
id-token: write
release:
needs: [dist, test, docs]
if: github.ref_type == 'tag'
uses: ./.github/workflows/_release.yml
permissions:
contents: write