Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
1f5fc95b
Commit
1f5fc95b
authored
Apr 30, 2019
by
thomwolf
Browse files
add code coverage
parent
c30139a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
.circleci/config.yml
.circleci/config.yml
+6
-3
.coveragerc
.coveragerc
+8
-0
No files found.
.circleci/config.yml
View file @
1f5fc95b
...
...
@@ -7,9 +7,11 @@ jobs:
steps
:
-
checkout
-
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
:
python -m pytest -sv tests/ --runslow
-
run
:
codecov
build_py2
:
working_directory
:
~/pytorch-pretrained-BERT
docker
:
...
...
@@ -17,10 +19,11 @@ jobs:
steps
:
-
checkout
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest
spacy
-
run
:
sudo pip install ftfy==4.4.3
-
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
:
python -m pytest -sv tests/ --runslow
-
run
:
codecov
workflows
:
version
:
2
build_and_test
:
...
...
.coveragerc
0 → 100644
View file @
1f5fc95b
[run]
source=pytorch_pretrained_bert
[report]
exclude_lines =
pragma: no cover
raise
except
register_parameter
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment