@@ -2,22 +2,17 @@ name: Pull Request CI
22
33on :
44 pull_request :
5- push :
6- branches : [main]
75
86permissions :
97 contents : read
10- checks : write
11- pull-requests : write
128
139concurrency :
14- group : pr-${{ github.ref }}
10+ group : pr-ci- ${{ github.ref }}
1511 cancel-in-progress : true
1612
1713jobs :
1814 unit :
1915 name : Unit
20- if : github.event_name == 'pull_request'
2116 runs-on : ${{ matrix.os }}
2217 timeout-minutes : 25
2318 strategy :
@@ -40,12 +35,11 @@ jobs:
4035 python -m pip install --upgrade pip
4136 python -m pip install -e .[testing]
4237
43- - name : Pytest ( unit) • ${{ matrix.os }}, ${{ matrix.python-version }}
38+ - name : Pytest unit • ${{ matrix.os }}, ${{ matrix.python-version }}
4439 run : python -m pytest tests/unit
4540
4641 discover-systems :
4742 name : Discover regression systems
48- if : github.event_name == 'pull_request'
4943 runs-on : ubuntu-24.04
5044 outputs :
5145 systems : ${{ steps.set-systems.outputs.systems }}
@@ -68,11 +62,10 @@ jobs:
6862 id : set-systems
6963 run : |
7064 SYSTEMS=$(python -m tests.regression.list_systems)
71- echo "systems=$SYSTEMS" >> $GITHUB_OUTPUT
65+ echo "systems=$SYSTEMS" >> " $GITHUB_OUTPUT"
7266
7367 regression-quick :
74- name : Regression (fast) • ${{ matrix.system }}
75- if : github.event_name == 'pull_request'
68+ name : Regression fast • ${{ matrix.system }}
7669 needs : discover-systems
7770 runs-on : ubuntu-24.04
7871 timeout-minutes : 35
@@ -117,7 +110,6 @@ jobs:
117110
118111 docs :
119112 name : Docs
120- if : github.event_name == 'pull_request'
121113 needs : unit
122114 runs-on : ubuntu-24.04
123115 timeout-minutes : 25
@@ -150,7 +142,6 @@ jobs:
150142
151143 pre-commit :
152144 name : Pre-commit
153- if : github.event_name == 'pull_request'
154145 needs : unit
155146 runs-on : ubuntu-24.04
156147 timeout-minutes : 15
@@ -184,6 +175,12 @@ jobs:
184175 runs-on : ubuntu-24.04
185176 timeout-minutes : 30
186177
178+ permissions :
179+ contents : read
180+ checks : write
181+ statuses : write
182+ pull-requests : write
183+
187184 steps :
188185 - name : Checkout
189186 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
0 commit comments