Skip to content

Commit

Permalink
add coverage report in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres committed Jul 24, 2024
1 parent cd21d15 commit c34aefc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ goodman_pipeline/data/dcr_source/*.o
.tox/*
*/goodman_pipeline.egg-info/*
goodman_pipeline/version.py
coverage.xml
*.DS_Store
16 changes: 11 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,22 @@ classifiers = [
]

dependencies = [
"astropy",
"astroplan",
"ccdproc",
"cython",
"matplotlib",
"numpy",
"pandas",
"matplotlib",
"requests",
"scipy",
"cython",
"astropy",
"ccdproc",
"astroplan"

]

[project.optional-dependencies]
test = [
"mock"
]

[project.urls]
"Homepage" = "https://soardocs.readthedocs.io/projects/goodman-pipeline/en/latest/"
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ description =

deps =
cov: pytest-cov
cov: mock

commands =
pytest '{toxinidir}/goodman_pipeline' {posargs}
cov: pytest --cov goodman_pipeline --cov-config='{toxinidir}/setup.cfg' {posargs}
cov: pytest '{toxinidir}/goodman_pipeline' --cov goodman_pipeline {posargs}
cov: coverage xml -o '{toxinidir}/coverage.xml'
html: coverage html -d .coverage_html

0 comments on commit c34aefc

Please sign in to comment.