Skip to content

Commit

Permalink
attempt to add coverage to reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Apr 1, 2024
1 parent d5eede2 commit e224dc2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test-indicators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,23 @@ jobs:
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install pytest-cov
- name: Test indicators
id: test-library
if: env.IS_PRIMARY == 'false'
run: pytest -vr A tests

- name: Test indicators with coverage
if: env.IS_PRIMARY == 'true'
run: >
pytest -vr A tests --junitxml=pytest.xml
pytest -vr A tests
--junitxml=pytest.xml
--cov-report term
--cov=stock_indicators pytest-coverage.txt
- name: Post test summary
uses: MishaKav/pytest-coverage-comment@main
if: env.IS_PRIMARY == 'true'
with:
pytest-coverage-path: pytest-coverage.txt
junitxml-path: pytest.xml

0 comments on commit e224dc2

Please sign in to comment.