mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Omit test dir for coverage
This commit is contained in:
parent
1d9ebf5a0d
commit
d86853f7dd
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
@ -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
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user