mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
# Derived from <https://github.com/pyca/cryptography/blob/SOME_REF/.github/actions/upload-coverage/action.yml>
|
|
# Originally authored by the PyCA Cryptography maintainers, and licensed under
|
|
# the terms of the BSD license:
|
|
# <https://github.com/pyca/cryptography/blob/main/LICENSE.BSD>
|
|
|
|
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
|
|
|