Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,38 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- name: "Check out source code"
uses: actions/checkout@v6
- name: "Install Python"
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v7
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Lint
- name: "Run tests"
run: ant test

lint:
runs-on: ubuntu-latest
# Disable pre-commit check on the master branch to prevent
# pull request merges to fail with don't commit to branch.
if: github.ref != 'refs/heads/master'
steps:
- name: "Check out source code"
uses: actions/checkout@v6
- name: "Install Python"
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
# NOTE Using the "latest" version of uv is risky, but for the time being uv is updated
# regularly, so a specific version would be outdated rather quickly. Once uv goes
# version 1.0, this should be changed to something like ">=1 <2".
version: "latest"
- name: "Run pre-commit checks"
uses: pre-commit/action@v3.0.1
- run: ant test