From 047bae2f117670011105b279d154dcadbdefd35c Mon Sep 17 00:00:00 2001 From: Sebastian Englbrecht Date: Tue, 20 Dec 2022 18:59:33 +0100 Subject: [PATCH] Run codecov in run_tests --- Makefile | 2 +- requirements-wheels.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4d201c71..e648ff426 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ run: local docker run --rm --publish=5000:5000 --volume=${PWD}/config/config.yml:/config/config.yml frigate:latest run_tests: local - docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m unittest + docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest /bin/bash -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/*" docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m mypy --config-file frigate/mypy.ini frigate .PHONY: run_tests diff --git a/requirements-wheels.txt b/requirements-wheels.txt index 930ab9e47..4f20cdbc3 100644 --- a/requirements-wheels.txt +++ b/requirements-wheels.txt @@ -1,4 +1,5 @@ click == 8.1.* +coverage == 7.0.* Flask == 2.2.* imutils == 0.5.* matplotlib == 3.6.*