Skip to content

Commit

Permalink
Eh/code test coverage (#93)
Browse files Browse the repository at this point in the history
* Adding code coverage

* Fix coverage testing

* Switch from pytest to coverage
  • Loading branch information
euxhenh authored Aug 4, 2023
1 parent b93a8d0 commit a76912f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install .
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
- name: Test with coverage and pytest
run: |
pytest --doctest-modules
coverage run -m pytest --doctest-modules
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ conf/*
docs
*.h5ad
figs
*logs
*logs
.coverage
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ diptest
phenotype_cover
leidenalg
pyensembl
seaborn
seaborn
coverage
pytest

0 comments on commit a76912f

Please sign in to comment.