Omit test dir for coverage

This commit is contained in:
Sebastian Englbrecht 2022-12-20 21:27:06 +01:00
parent 1d9ebf5a0d
commit d86853f7dd
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ jobs:
run: docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
- name: Run tests and measure codecoverage
# Make sure to also update the Makefile target!
run: docker run --rm --entrypoint=/bin/bash frigate:latest -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/*"
run: docker run --rm --entrypoint=/bin/bash frigate:latest -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/* --omit=frigate/test/*""
- name: Upload codecoverage report to Codecov
uses: codecov/codecov-action@v3.1.1

View File

@ -32,7 +32,7 @@ run: local
run_tests: local
# Make sure to also check and update the Github Action in pull_request.yml
docker run --rm --workdir=/opt/frigate --entrypoint=/bin/bash frigate:latest -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/*"
docker run --rm --workdir=/opt/frigate --entrypoint=/bin/bash frigate:latest -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/* --omit=frigate/test/*"
docker run --rm --workdir=/opt/frigate --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
.PHONY: run_tests