Commit 1f5fc95b authored by thomwolf's avatar thomwolf
Browse files

add code coverage

parent c30139a0
...@@ -7,9 +7,11 @@ jobs: ...@@ -7,9 +7,11 @@ jobs:
steps: steps:
- checkout - checkout
- run: sudo pip install --progress-bar off . - run: sudo pip install --progress-bar off .
- run: sudo pip install pytest ftfy spacy - run: sudo pip install pytest codecov pytest-cov
- run: sudo pip install spacy ftfy==4.4.3
- run: sudo python -m spacy download en - run: sudo python -m spacy download en
- run: python -m pytest -sv tests/ --runslow - run: python -m pytest -sv tests/ --runslow
- run: codecov
build_py2: build_py2:
working_directory: ~/pytorch-pretrained-BERT working_directory: ~/pytorch-pretrained-BERT
docker: docker:
...@@ -17,10 +19,11 @@ jobs: ...@@ -17,10 +19,11 @@ jobs:
steps: steps:
- checkout - checkout
- run: sudo pip install --progress-bar off . - run: sudo pip install --progress-bar off .
- run: sudo pip install pytest spacy - run: sudo pip install pytest codecov pytest-cov
- run: sudo pip install ftfy==4.4.3 - run: sudo pip install spacy ftfy==4.4.3
- run: sudo python -m spacy download en - run: sudo python -m spacy download en
- run: python -m pytest -sv tests/ --runslow - run: python -m pytest -sv tests/ --runslow
- run: codecov
workflows: workflows:
version: 2 version: 2
build_and_test: build_and_test:
......
[run]
source=pytorch_pretrained_bert
[report]
exclude_lines =
pragma: no cover
raise
except
register_parameter
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment