Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
small CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Jun 13, 2021
1 parent d721487 commit 8cb4b08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ __pycache__

.coverage
.pytest_cache/
coverage.xml

# doc stuff
mkdocs.yml
Expand Down
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VERSION = $(shell python ./scripts/get_version.py current --minimal)
ALLENNLP_TAG = v$(VERSION)

SRC = allennlp_models
COV = $(SRC)

MD_DOCS_ROOT = docs/
MD_DOCS_API_ROOT = $(MD_DOCS_ROOT)models/
Expand Down Expand Up @@ -61,18 +62,18 @@ typecheck :

.PHONY : test
test :
pytest --color=yes -rf --durations=40 -m "not pretrained_model_test and not pretrained_config_test"
pytest -v --color=yes -rf --durations=40 -m "not pretrained_model_test and not pretrained_config_test"

.PHONY : gpu-test
gpu-test :
pytest --color=yes -v -rf -m gpu
pytest -v --color=yes -v -rf -m gpu

.PHONY : test-with-cov
test-with-cov :
pytest --color=yes -rf --durations=40 \
pytest -v --color=yes -rf --durations=40 \
-m "not pretrained_model_test and not pretrained_config_test" \
--cov-config=.coveragerc \
--cov=allennlp_models/ \
--cov=$(COV) \
--cov-report=xml

.PHONY : test-pretrained
Expand Down

0 comments on commit 8cb4b08

Please sign in to comment.