mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Update Github action and use Codecov
This commit is contained in:
parent
70d5865e43
commit
1d9ebf5a0d
7
.github/workflows/pull_request.yml
vendored
7
.github/workflows/pull_request.yml
vendored
@ -99,6 +99,9 @@ jobs:
|
|||||||
- name: Run mypy
|
- name: Run mypy
|
||||||
# Make sure to also update the Makefile target!
|
# 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
|
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!
|
# 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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user