-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove codecov after unit tests (#156)
* fix: remove codecov after unit tests * chore: remove codecov_token from secrets section
- Loading branch information
Showing
1 changed file
with
0 additions
and
19 deletions.
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 |
---|---|---|
|
@@ -27,9 +27,6 @@ on: | |
VT_API_KEY: | ||
description: Virustotal api key | ||
required: true | ||
CODECOV_TOKEN: | ||
description: Codecov token | ||
required: true | ||
OTHER_TA_REQUIRED_CONFIGS: | ||
description: other required configs | ||
required: true | ||
|
@@ -552,22 +549,6 @@ jobs: | |
run: cp tests/unit/pytest-ci.ini pytest.ini | ||
- name: Run Pytest with coverage | ||
run: pytest --cov=./ --cov-report=xml --junitxml=test-results/junit.xml tests/unit | ||
- name: Run Check if codecov enabled | ||
id: checkcodecov | ||
run: if [ -n "$CODECOV_TOKEN" ]; then echo "ENABLED=true" >> "$GITHUB_OUTPUT"; fi | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Upload coverage to Codecov | ||
if: ${{ steps.checkcodecov.outputs.ENABLED == 'true' }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
directory: ./coverage/reports/ | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: true | ||
path_to_write_report: ./coverage/codecov_report.txt | ||
verbose: true | ||
- uses: actions/upload-artifact@v3 # upload test results | ||
if: success() || failure() # run this step even if previous step failed | ||
with: | ||
|