mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 11:49:53 +02:00
ci: install pip and require models for coverage
This commit is contained in:
parent
b54ccf90f7
commit
7b099352c0
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ jobs:
|
||||||
docker:
|
docker:
|
||||||
- image: ubuntu:18.04
|
- image: ubuntu:18.04
|
||||||
steps:
|
steps:
|
||||||
- run: apt-get update ; apt-get install -y make git curl
|
- run: apt-get update ; apt-get install -y make git curl python3-pip
|
||||||
- checkout
|
- checkout
|
||||||
- run: make install
|
- run: make install
|
||||||
- run: pip install -r requirements-test.txt
|
- run: pip install -r requirements-test.txt
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -78,7 +78,7 @@ test: test/assets calamari_models
|
||||||
$(PYTHON) -m pytest --continue-on-collection-errors test $(PYTEST_ARGS)
|
$(PYTHON) -m pytest --continue-on-collection-errors test $(PYTEST_ARGS)
|
||||||
|
|
||||||
# Run unit tests and determine test coverage
|
# Run unit tests and determine test coverage
|
||||||
coverage:
|
coverage: test/assets calamari_models
|
||||||
coverage erase
|
coverage erase
|
||||||
make test PYTHON="coverage run"
|
make test PYTHON="coverage run"
|
||||||
coverage report
|
coverage report
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue