Skip to content

Commit

Permalink
fix: remove codecov after unit tests (#156)
Browse files Browse the repository at this point in the history
* fix: remove codecov after unit tests

* chore: remove codecov_token from secrets section
  • Loading branch information
artemrys authored May 31, 2023
1 parent 1cbf06e commit 2ce8a17
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2ce8a17

Please sign in to comment.