Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 1082e58

Browse files
committed
Coverage report
1 parent c2255dd commit 1082e58

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/pytest.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Unitest with pytest
6060
# yamllint disable rule:line-length
6161
run:
62-
python -m pytest . -v -rP --doctest-modules --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml --cov-report term-missing --cov-fail-under=80 --cov=./ --cov-report html:test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.html
62+
python -m pytest . -v -rP --doctest-modules --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml --cov-report term-missing --cov-fail-under=80 --cov=./ --cov-report html:test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.html xml:test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.xml
6363
# yamllint enable rule:line-length
6464
- name: Upload pytest test artifacts
6565
uses: actions/upload-artifact@v4
@@ -75,6 +75,12 @@ jobs:
7575
# artifact for the given name already exists. Does not fail if
7676
# the artifact does not exist. Optional. Default is 'false'
7777
overwrite: false
78+
# Source: https://github.com/orgoro/coverage
79+
- name: Post Coverage Report
80+
uses: orgoro/coverage@v3.2
81+
with:
82+
coverageFile: test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.xml
83+
token: ${{ secrets.GITHUB_TOKEN }}
7884
- name: Upload pytest coverage artifacts
7985
uses: actions/upload-artifact@v4
8086
with:

.github/workflows/pytest_kyu2.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,4 @@ jobs:
5454
- name: Unitest with pytest
5555
# yamllint disable rule:line-length
5656
run:
57-
python -m pytest ./kyu_2 -v -rP --doctest-modules --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml --cov-report term-missing --cov-fail-under=80 --cov=./kyu_2 --cov-report xml:test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.xml
58-
# Source: https://github.com/orgoro/coverage
59-
- name: Post Coverage Report
60-
uses: orgoro/coverage@v3.2
61-
with:
62-
coverageFile: test-coverage-${{ matrix.os }}-${{ matrix.python-version }}.xml
63-
token: ${{ secrets.GITHUB_TOKEN }}
57+
python -m pytest ./kyu_2 -v -rP --doctest-modules --cov-report term-missing --cov-fail-under=80 --cov=./kyu_2

0 commit comments

Comments
 (0)