From 1d9ebf5a0d3bca999a709738d8c7e988d7f75031 Mon Sep 17 00:00:00 2001 From: Sebastian Englbrecht Date: Tue, 20 Dec 2022 19:21:18 +0100 Subject: [PATCH] Update Github action and use Codecov --- .github/workflows/pull_request.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index e792d96e0..78c06965c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -99,6 +99,9 @@ jobs: - name: Run mypy # Make sure to also update the Makefile target! run: docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate - - name: Run tests + - name: Run tests and measure codecoverage # Make sure to also update the Makefile target! - run: docker run --rm --entrypoint=python3 frigate:latest -u -m unittest + run: docker run --rm --entrypoint=/bin/bash frigate:latest -c "python3 -u -m coverage run -m unittest;python3 -m coverage report --include=frigate/*" + - name: Upload codecoverage report to Codecov + uses: codecov/codecov-action@v3.1.1 +