-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (48 loc) · 1.48 KB
/
ci.yaml
File metadata and controls
51 lines (48 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- name: "Check out source code"
uses: actions/checkout@v6
- name: "Install Python"
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: "Install uv"
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- 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