@@ -14,13 +14,38 @@ jobs:
1414 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1515 runs-on : ${{ matrix.os }}
1616 steps :
17- - uses : actions/checkout@v6
18- - uses : actions/setup-python@v6
17+ - name : " Check out source code"
18+ uses : actions/checkout@v6
19+ - name : " Install Python"
20+ uses : actions/setup-python@v6
1921 with :
2022 python-version : ${{ matrix.python-version }}
21- - uses : astral-sh/setup-uv@v7
23+ - name : " Install uv"
24+ uses : astral-sh/setup-uv@v7
2225 with :
2326 enable-cache : true
24- - name : Lint
27+ - name : " Run tests"
28+ run : ant test
29+
30+ lint :
31+ runs-on : ubuntu-latest
32+ # Disable pre-commit check on the master branch to prevent
33+ # pull request merges to fail with don't commit to branch.
34+ if : github.ref != 'refs/heads/master'
35+ steps :
36+ - name : " Check out source code"
37+ uses : actions/checkout@v6
38+ - name : " Install Python"
39+ uses : actions/setup-python@v6
40+ with :
41+ python-version : " 3.14"
42+ - name : " Install uv"
43+ uses : astral-sh/setup-uv@v7
44+ with :
45+ enable-cache : true
46+ # NOTE Using the "latest" version of uv is risky, but for the time being uv is updated
47+ # regularly, so a specific version would be outdated rather quickly. Once uv goes
48+ # version 1.0, this should be changed to something like ">=1 <2".
49+ version : " latest"
50+ - name : " Run pre-commit checks"
2551 uses : pre-commit/action@v3.0.1
26- - run : ant test
0 commit comments