Skip to content

Commit

Permalink
[GA] Add coverage (#6)
Browse files Browse the repository at this point in the history
[GA] Add coverage
  • Loading branch information
iory authored Jan 2, 2024
1 parent 470f066 commit fedf84c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
os: [self-hosted]
python-version: [3.7, 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python for Self-Hosted Linux arm64
uses: iory/[email protected]
with:
Expand All @@ -48,8 +49,17 @@ jobs:
- name: Install Pytest
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pytest hacking
pip install pytest hacking pytest-cov
- name: Install python package
run: pip install .
- name: Run Pytest
run: pytest -v tests
run: |
set -o pipefail
coverage erase
coverage run -m pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered
coverage xml
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml
junitxml-path: ./pytest.xml

2 comments on commit fedf84c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.