Skip to content

pyproject.toml

pyproject.toml #149

Workflow file for this run

# Runs tests on pull requests for main
permissions: read-all
name: Presubmit
on:
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install nox
run: pip install -e .[dev]
- name: Check formatting
run: nox -s lint
- name: Run tests
run: nox -s tests-${{ matrix.python-version }}