Skip to content

Commit

Permalink
Set up Codecov (#56) (#65)
Browse files Browse the repository at this point in the history
* Set up Codecov (#56)
* Remove redundant tests
  • Loading branch information
s0mnaths authored Sep 16, 2021
1 parent a2a7279 commit cab4623
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
pip install .
pip install -r requirements.txt
pip install pytest
pip install pytest-cov
- name: Run pytest
run: pytest devolearn/tests/test.py

- name: Run tests
run: pytest devolearn/tests/test.py --cov=devolearn --cov-report=xml

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ torchvision>=0.8.1
tqdm==4.56.0
typing-extensions==3.7.4.3
wget==3.2
pytest-cov

0 comments on commit cab4623

Please sign in to comment.