mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Sync structure of Makefile and Github Action
This commit is contained in:
parent
047bae2f11
commit
70d5865e43
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
@ -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
|
||||||
|
|||||||
5
Makefile
5
Makefile
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user