Skip to content

Commit

Permalink
add code coverage CI to pipeline code (#71)
Browse files Browse the repository at this point in the history
* add code coverage CI to pipeline code

* do coverage of pipeline not pyrenew

* don't hand in path

if already telling poetry path, maybe don't need to tell pytest a path

* remove extra model reference

* need some path?

* works locally, so it'll work here right?

* closer to model CI

* raw copy of working local code

* break long line

* go back to long line I guess
  • Loading branch information
natemcintosh authored Apr 8, 2024
1 parent 5dccc03 commit 08035cc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,22 @@ jobs:
key: ${{ runner.os }}-poetry
- name: install poetry
run: pip install poetry

- name: install package
run: poetry install -C pipeline

- name: install pytest-cov
run: poetry run -C pipeline pip install pytest-cov

- name: run tests
run: poetry run -C pipeline pytest pipeline
run: poetry run -C pipeline pytest pipeline --cov=pipeline --cov-report term --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
file: coverage.xml
plugin: pycoverage
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 08035cc

Please sign in to comment.