File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
@@ -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 || 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
You can’t perform that action at this time.
0 commit comments