# Derived from # Originally authored by the PyCA Cryptography maintainers, and licensed under # the terms of the BSD license: # name: Upload Coverage description: Upload coverage files runs: using: "composite" steps: # FIXME(jl): codecov has the option of including machine information in filename that would solve this unique naming # issue more completely. # This method has the limitation of 1 coverage file per run, limiting some coverage between online/offline tests. - run: | COVERAGE_UUID=$(python3 -c "import uuid; print(uuid.uuid4())") echo "COVERAGE_UUID=${COVERAGE_UUID}" >> "$GITHUB_OUTPUT" if [ -f .coverage ]; then mv .coverage .coverage.${COVERAGE_UUID} fi id: coverage-uuid shell: bash - uses: actions/upload-artifact@v4 with: name: coverage-data-${{ steps.coverage-uuid.outputs.COVERAGE_UUID }} path: | .coverage.* *.lcov if-no-files-found: ignore include-hidden-files: true