Skip to content

Commit 81e5304

Browse files
committed
Replace action/upload-artifact with a more secure alternative
Related: AAP-46204
1 parent 9958e82 commit 81e5304

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/tox.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ jobs:
175175
echo "$SCRIPTS_DIR" >> $GITHUB_PATH
176176
echo "Added $SCRIPTS_DIR to PATH to avoid further issues."
177177
fi
178-
python3 -m pip install --disable-pip-version-check --upgrade --user --break-system-packages pip uv 'tox>=4.23.2' 'tox-uv>=1.16.0'
178+
python3 -m pip install --disable-pip-version-check --upgrade --user --break-system-packages pip uv 'tox>=4.23.2' 'tox-uv>=1.16.0' tox-extra
179179
which -a uv pip tox
180+
python3 -m pip install git+https://github.com/tox-dev/tox.git@fix/3542
180181
echo "uv tool update-shell"
181182
tox --version
182183
echo "Log installed dists"
@@ -209,6 +210,15 @@ jobs:
209210
.tox/**/log/
210211
.tox/**/coverage.xml
211212
213+
- name: Archive logs and coverage data
214+
uses: coactions/upload-artifact@main
215+
with:
216+
name: logs-${{ matrix.name }}.zip
217+
include-hidden-files: true
218+
path: |
219+
.tox/**/log/
220+
.tox/**/coverage.xml
221+
212222
- name: Upload test results to Codecov
213223
if: ${{ !cancelled() && hashFiles('junit.xml') != '' }}
214224
uses: codecov/test-results-action@v1

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ uv_seed = true
6363
[testenv:docs]
6464
description = Build docs
6565
extras = docs
66-
passenv =
67-
*
6866
setenv =
6967
# see https://github.com/tox-dev/tox/issues/2092#issuecomment-2538729079
7068
# see https://github.com/Kozea/CairoSVG/issues/392#issuecomment-2538707712

0 commit comments

Comments
 (0)