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

Commit

Permalink
use tokenless codecov upload (#57)
Browse files Browse the repository at this point in the history
* use tokenless codecov upload

* Trigger CI again
  • Loading branch information
epwalsh committed May 19, 2020
1 parent 20fb509 commit 452b213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:
make test-with-cov
- name: Upload coverage to Codecov
if: matrix.python == '3.7'
run: |
if: matrix.python == '3.7' && github.repository == 'allenai/allennlp-models'
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
# Ignore codecov failures as the codecov server is not
# very reliable but we don't want to report a failure
# in the github UI just because the coverage report failed to
# be published.
codecov || echo "codecov upload failed"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

pretrained:
name: Pretrained Models
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ gpu-test :

.PHONY : test-with-cov
test-with-cov :
pytest --color=yes -rf --cov-config=.coveragerc --cov=allennlp_models/ --durations=40 -m "not pretrained_model_test"
pytest --color=yes -rf --durations=40 -m "not pretrained_model_test" \
--cov-config=.coveragerc \
--cov=allennlp_models/ \
--cov-report=xml

.PHONY : test-pretrained
test-pretrained :
Expand Down

0 comments on commit 452b213

Please sign in to comment.