diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-21 19:59:56 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-21 19:59:58 -0700 |
commit | c82dbcaaa89d99cbe482eeb2d8ffbce28201fd14 (patch) | |
tree | 019481f865b283833bbbf9cddb97af9b9717b9bb /Makefile | |
parent | 45deea74f80d1e8deed6076f2a93d711d16a3a83 (diff) | |
download | grobid_tei_xml-c82dbcaaa89d99cbe482eeb2d8ffbce28201fd14.tar.gz grobid_tei_xml-c82dbcaaa89d99cbe482eeb2d8ffbce28201fd14.zip |
add examples to README, and test those examples in CI
These tests don't run as part of 'make test' by default because they do
live fetches against the internet.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -20,14 +20,17 @@ lint: ## Run lints (eg, flake8, mypy) .PHONY: fmt fmt: ## Run code formating on all source code - pipenv run isort --atomic grobid_tei_xml/* - pipenv run yapf -p -i -r grobid_tei_xml/* - pipenv run yapf -p -i -r tests + pipenv run isort --atomic grobid_tei_xml/*.py + pipenv run yapf -p -i -r grobid_tei_xml tests .PHONY: test test: ## Run all tests and lints - pipenv run python -m pytest + pipenv run python -m pytest -vv + +.PHONY: test-readme +test-readme: ## Test codeblocks in the README (includes live web requests) + pipenv run python -m pytest --codeblocks .PHONY: coverage coverage: ## Run all tests with coverage - pipenv run pytest --cov --cov-report=term --cov-report=html + pipenv run python -m pytest --cov --cov-report=term --cov-report=html |