| 1 |
name: Upload Coverage |
| 2 |
description: Upload coverage files |
| 3 |
|
| 4 |
runs: |
| 5 |
using: "composite" |
| 6 |
|
| 7 |
steps: |
| 8 |
- run: | |
| 9 |
COVERAGE_UUID=$(python3 -c "import uuid; print(uuid.uuid4())") |
| 10 |
echo "COVERAGE_UUID=${COVERAGE_UUID}" >> $GITHUB_OUTPUT |
| 11 |
if [ -f .coverage ]; then |
| 12 |
mv .coverage .coverage.${COVERAGE_UUID} |
| 13 |
fi |
| 14 |
id: coverage-uuid |
| 15 |
shell: bash |
| 16 |
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 17 |
with: |
| 18 |
name: coverage-data-${{ steps.coverage-uuid.outputs.COVERAGE_UUID }} |
| 19 |
path: | |
| 20 |
.coverage.* |
| 21 |
if-no-files-found: ignore |
| 22 |
include-hidden-files: true |