Sync structure of Makefile and Github Action

This commit is contained in:
Sebastian Englbrecht 2022-12-20 19:08:27 +01:00
parent 047bae2f11
commit 70d5865e43
2 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,8 @@ jobs:
- name: Build - name: Build
run: make run: make
- name: Run mypy - 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 run: docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
- name: Run tests - name: Run tests
# Make sure to also update the Makefile target!
run: docker run --rm --entrypoint=python3 frigate:latest -u -m unittest run: docker run --rm --entrypoint=python3 frigate:latest -u -m unittest

View File

@ -31,7 +31,8 @@ run: local
docker run --rm --publish=5000:5000 --volume=${PWD}/config/config.yml:/config/config.yml frigate:latest docker run --rm --publish=5000:5000 --volume=${PWD}/config/config.yml:/config/config.yml frigate:latest
run_tests: local run_tests: local
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/*" # Make sure to also check and update the Github Action in pull_request.yml
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m mypy --config-file frigate/mypy.ini 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/*"
docker run --rm --workdir=/opt/frigate --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate
.PHONY: run_tests .PHONY: run_tests