2626 timeout-minutes : 5
2727 steps :
2828 - uses : actions/checkout@v6
29+ with :
30+ persist-credentials : false
2931 - name : Install Ruff
3032 run : pip install ruff
3133 - name : Ruff Check
3840 timeout-minutes : 5
3941 steps :
4042 - uses : actions/checkout@v6
43+ with :
44+ persist-credentials : false
4145 - name : Checkout submodules
4246 run : git submodule update --init --recursive --depth 1
4347 - name : Install typing dependencies
5963 version : ${{ env.sdl-version }}
6064 - uses : actions/checkout@v6
6165 with :
66+ persist-credentials : false
6267 fetch-depth : ${{ env.git-depth }}
6368 - name : Checkout submodules
6469 run : git submodule update --init --recursive --depth 1
8691 steps :
8792 - uses : actions/checkout@v6
8893 with :
94+ persist-credentials : false
8995 fetch-depth : ${{ env.git-depth }}
9096 - name : Checkout submodules
9197 run : git submodule update --init --recursive --depth 1
@@ -117,10 +123,10 @@ jobs:
117123 steps :
118124 - uses : actions/checkout@v6
119125 with :
126+ persist-credentials : false
120127 fetch-depth : ${{ env.git-depth }}
121128 - name : Checkout submodules
122- run : |
123- git submodule update --init --recursive --depth 1
129+ run : git submodule update --init --recursive --depth 1
124130 - name : Set up Python ${{ matrix.python-version }}
125131 uses : actions/setup-python@v6
126132 with :
@@ -143,19 +149,15 @@ jobs:
143149 pip install pytest pytest-cov pytest-benchmark pytest-timeout build
144150 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
145151 - name : Initialize package
146- run : |
147- pip install -e . # Install the package in-place.
152+ run : pip install -e . # Install the package in-place.
148153 - name : Build package
149- run : |
150- python -m build
154+ run : python -m build
151155 - name : Test with pytest
152156 if : runner.os == 'Windows'
153- run : |
154- pytest --cov-report=xml --timeout=300
157+ run : pytest --cov-report=xml --timeout=300
155158 - name : Test with pytest (Xvfb)
156159 if : always() && runner.os != 'Windows'
157- run : |
158- xvfb-run -e /tmp/xvfb.log --server-num=$RANDOM --auto-servernum pytest --cov-report=xml --timeout=300
160+ run : xvfb-run -e /tmp/xvfb.log --server-num=$RANDOM --auto-servernum pytest --cov-report=xml --timeout=300
159161 - name : Xvfb logs
160162 if : runner.os != 'Windows'
161163 run : cat /tmp/xvfb.log
@@ -181,6 +183,7 @@ jobs:
181183 version : ${{ env.sdl-version }}
182184 - uses : actions/checkout@v6
183185 with :
186+ persist-credentials : false
184187 fetch-depth : ${{ env.git-depth }}
185188 - name : Checkout submodules
186189 run : git submodule update --init --recursive --depth 1
@@ -206,6 +209,7 @@ jobs:
206209 steps :
207210 - uses : actions/checkout@v6
208211 with :
212+ persist-credentials : false
209213 fetch-depth : ${{ env.git-depth }}
210214 - name : Checkout submodules
211215 run : git submodule update --init --depth 1
@@ -239,6 +243,7 @@ jobs:
239243 steps :
240244 - uses : actions/checkout@v6
241245 with :
246+ persist-credentials : false
242247 fetch-depth : ${{ env.git-depth }}
243248 - name : Checkout submodules
244249 run : git submodule update --init --recursive --depth 1
@@ -270,8 +275,9 @@ jobs:
270275 # Skip test on emulated architectures
271276 CIBW_TEST_SKIP : " *_aarch64"
272277 - name : Remove asterisk from label
278+ env :
279+ BUILD_DESC : ${{ matrix.build }}
273280 run : |
274- BUILD_DESC=${{ matrix.build }}
275281 BUILD_DESC=${BUILD_DESC//\*}
276282 echo BUILD_DESC=${BUILD_DESC} >> $GITHUB_ENV
277283 - name : Archive wheel
@@ -295,6 +301,7 @@ jobs:
295301 steps :
296302 - uses : actions/checkout@v6
297303 with :
304+ persist-credentials : false
298305 fetch-depth : ${{ env.git-depth }}
299306 - name : Checkout submodules
300307 run : git submodule update --init --recursive --depth 1
@@ -317,8 +324,9 @@ jobs:
317324 CIBW_TEST_SKIP : " pp* *-macosx_arm64 *-macosx_universal2:arm64"
318325 MACOSX_DEPLOYMENT_TARGET : " 10.13"
319326 - name : Remove asterisk from label
327+ env :
328+ PYTHON_DESC : ${{ matrix.python }}
320329 run : |
321- PYTHON_DESC=${{ matrix.python }}
322330 PYTHON_DESC=${PYTHON_DESC//\*/X}
323331 echo PYTHON_DESC=${PYTHON_DESC} >> $GITHUB_ENV
324332 - name : Archive wheel
@@ -336,6 +344,7 @@ jobs:
336344 steps :
337345 - uses : actions/checkout@v6
338346 with :
347+ persist-credentials : false
339348 fetch-depth : ${{ env.git-depth }}
340349 - name : Checkout submodules
341350 run : git submodule update --init --recursive --depth 1
@@ -365,7 +374,7 @@ jobs:
365374 name : pypi
366375 url : https://pypi.org/project/tcod/${{ github.ref_name }}
367376 permissions :
368- id-token : write
377+ id-token : write # Attestation
369378 steps :
370379 - uses : actions/download-artifact@v7
371380 with :
0 commit comments