From c82dbcaaa89d99cbe482eeb2d8ffbce28201fd14 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Oct 2021 19:59:56 -0700 Subject: 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. --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3