summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-21 19:59:56 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-21 19:59:58 -0700
commitc82dbcaaa89d99cbe482eeb2d8ffbce28201fd14 (patch)
tree019481f865b283833bbbf9cddb97af9b9717b9bb /Makefile
parent45deea74f80d1e8deed6076f2a93d711d16a3a83 (diff)
downloadgrobid_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--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1eb93a5..7d5229a 100644
--- a/Makefile
+++ b/Makefile
@@ -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