-
Notifications
You must be signed in to change notification settings - Fork 979
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1799 from crytic/detector-compilation-artifacts
testing strategy + coverage workflow
- Loading branch information
Showing
15,369 changed files
with
47,058 additions
and
40,638 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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@v3.1.0 | ||
with: | ||
name: coverage-data | ||
path: | | ||
.coverage.* | ||
*.lcov | ||
if-no-files-found: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# used to pass --cov=$path and --cov-append to pytest | ||
if [ "$1" != "" ]; then | ||
pytest "$1" tests/e2e/ -n auto | ||
status_code=$? | ||
python -m coverage report | ||
else | ||
pytest tests/e2e/ -n auto | ||
status_code=$? | ||
fi | ||
|
||
exit "$status_code" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# used to pass --cov=$path and --cov-append to pytest | ||
if [ "$1" != "" ]; then | ||
pytest "$1" tests/tools/read-storage/test_read_storage.py | ||
status_code=$? | ||
python -m coverage report | ||
else | ||
pytest tests/tools/read-storage/test_read_storage.py | ||
status_code=$? | ||
fi | ||
|
||
exit "$status_code" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# used to pass --cov=$path and --cov-append to pytest | ||
if [ "$1" != "" ]; then | ||
pytest "$1" tests/unit/ | ||
status_code=$? | ||
python -m coverage report | ||
else | ||
pytest tests/unit/ | ||
status_code=$? | ||
fi | ||
|
||
exit "$status_code" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.