Skip to content

Commit d21f214

Browse files
committed
Fixed coverage artifact for parallel test workflow
1 parent 7ef1033 commit d21f214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/coverage-check-parallel.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
9191
TEST_NAME=$(basename "${{ matrix.test_file }}" .py)
9292
COVERAGE_FILE="coverage-${TEST_NAME}-${{ matrix.mode }}.xml"
93+
echo "TEST_NAME=$TEST_NAME" >> $GITHUB_ENV
9394
9495
poetry run pytest "${{ matrix.test_file }}" "$TEST_FILTER" "$TEST_EXPRESSION" \
9596
--cov=src --cov-report=xml:$COVERAGE_FILE --cov-report=term \
@@ -99,7 +100,7 @@ jobs:
99100
uses: actions/upload-artifact@v4
100101
if: always()
101102
with:
102-
name: coverage-$(basename "${{ matrix.test_file }}" .py)-${{ matrix.mode }}
103+
name: coverage-${{ env.TEST_NAME }}-${{ matrix.mode }}
103104
path: |
104105
.coverage
105106
coverage-*-${{ matrix.mode }}.xml

0 commit comments

Comments
 (0)