88 - " v*"
99 workflow_dispatch :
1010
11+ permissions :
12+ contents : read
13+
14+ concurrency :
15+ # To reduce rate limitation issues, avoid running multiple workflows in
16+ # paralell for the same git ref (PR / branch / tag) at the same time by
17+ # discarding older in-progress runs in favor of the newest.
18+ group : ${{ github.workflow }}-${{ github.ref }}
19+ cancel-in-progress : true
20+
1121jobs :
1222 pre-commit :
1323 runs-on : ubuntu-24.04
1727 - uses : actions/checkout@v6
1828 - uses : actions/setup-python@v6
1929 with :
20- python-version : 3.13
30+ python-version : " 3.14 "
2131
2232 # ref: https://github.com/pre-commit/action
2333 - uses : pre-commit/action@v3.0.1
@@ -35,16 +45,16 @@ jobs:
3545 tests :
3646 runs-on : ubuntu-24.04
3747 env :
38- # Use TOKEN_READONLY if available (pushed branches), otherwise use GITHUB_TOKEN (PRs)
39- # TOKEN_READONLY is a PAT for @choldgraf that only has read-access to this repo but isn't available in PRs.
40- GITHUB_ACCESS_TOKEN : " ${{ secrets.TOKEN_READONLY || secrets.GITHUB_TOKEN }}"
48+ GITHUB_ACCESS_TOKEN : " ${{ github.token }}"
4149 strategy :
50+ # max-parallel declared to reduce rate limitation issues
51+ max-parallel : 1
4252 matrix :
4353 include :
4454 # Only test oldest supported and latest python version to reduce
4555 # GitHub API calls, as they can get rate limited
46- - python-version : " 3.10"
4756 - python-version : 3.x
57+ - python-version : " 3.10"
4858
4959 steps :
5060 - uses : actions/checkout@v6
@@ -54,10 +64,10 @@ jobs:
5464 - name : Install dependencies
5565 run : |
5666 python -m pip install --upgrade pip
57- pip install -e .[testing]
67+ pip install -e " .[testing]"
5868
5969 - name : Run tests
60- run : pytest --verbose --color=yes --durations=10
70+ run : pytest
6171
6272 docs :
6373 runs-on : ubuntu-24.04
@@ -66,11 +76,11 @@ jobs:
6676 - uses : actions/checkout@v6
6777 - uses : actions/setup-python@v6
6878 with :
69- python-version : 3.13
79+ python-version : " 3.14 "
7080 - name : Install dependencies
7181 run : |
7282 python -m pip install --upgrade pip
73- pip install -e .[sphinx]
83+ pip install -e " .[sphinx]"
7484
7585 - name : Build docs
7686 run : |
0 commit comments