-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GA] Add coverage
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |
fedf84c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
fedf84c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report