test(coverage): Add Codecov (#2719)

This commit is contained in:
Pepe Fagoaga
2023-08-14 21:08:45 +02:00
committed by GitHub
parent 54137be92b
commit 2298d5356d
5 changed files with 44 additions and 6 deletions

View File

@@ -61,4 +61,8 @@ jobs:
/tmp/hadolint Dockerfile --ignore=DL3013
- name: Test with pytest
run: |
poetry run pytest tests -n auto
poetry run pytest -n auto --cov=./prowler --cov-report=xml tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}