Skip to content

Merge pull request #95 from buildkite/te-5274-pytest9-ci-matrix #256

Merge pull request #95 from buildkite/te-5274-pytest9-ci-matrix

Merge pull request #95 from buildkite/te-5274-pytest9-ci-matrix #256

Workflow file for this run

name: python
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
uv-run-flags: [""]
include:
- python-version: "3.13"
uv-run-flags: "--with 'pytest>=9'"
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run ${{ matrix.uv-run-flags }} pytest
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run pylint
run: uv run pylint src/