Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add code coverage CI to pipeline code #71

Merged
merged 10 commits into from
Apr 8, 2024
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