Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1181119?usp=email )
Change subject: Tests: Add coverage combine to workflows ...................................................................... Tests: Add coverage combine to workflows Also add `|| true` to the coverage combine command, preventing job failures when there are no coverage files to combine. Bug: T401124 Change-Id: If5655b1b8d67780454e76663f6a4f43b1947928c --- M .github/workflows/doctest.yml M .github/workflows/login_tests-ci.yml M .github/workflows/oauth_tests-ci.yml M .github/workflows/pywikibot-ci.yml M .github/workflows/sysop_write_tests-ci.yml M .github/workflows/windows_tests.yml 6 files changed, 6 insertions(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index dee414e..eb55cb6 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -68,6 +68,7 @@ coverage run -m pytest pywikibot --doctest-modules --ignore-glob="*gui.py" --ignore-glob="*memento.py" - name: Show coverage statistics run: | + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml index 84e3f44..cd70233 100644 --- a/.github/workflows/login_tests-ci.yml +++ b/.github/workflows/login_tests-ci.yml @@ -131,6 +131,7 @@ coverage run -m unittest -vv tests/site_login_logout_tests.py - name: Show coverage statistics run: | + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/oauth_tests-ci.yml b/.github/workflows/oauth_tests-ci.yml index 0aa7e33..0d8228c 100644 --- a/.github/workflows/oauth_tests-ci.yml +++ b/.github/workflows/oauth_tests-ci.yml @@ -102,6 +102,7 @@ coverage run -m unittest -vv - name: Show coverage statistics run: | + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml index dea4499..46f51d8 100644 --- a/.github/workflows/pywikibot-ci.yml +++ b/.github/workflows/pywikibot-ci.yml @@ -140,7 +140,7 @@ fi - name: Show coverage statistics run: | - coverage combine + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/sysop_write_tests-ci.yml b/.github/workflows/sysop_write_tests-ci.yml index a08b124..b7a1b7d 100644 --- a/.github/workflows/sysop_write_tests-ci.yml +++ b/.github/workflows/sysop_write_tests-ci.yml @@ -62,6 +62,7 @@ coverage run -m pytest -s -r A -a "${{ matrix.attr }}" - name: Show coverage statistics run: | + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/windows_tests.yml b/.github/workflows/windows_tests.yml index 13a2405..95c8aed 100644 --- a/.github/workflows/windows_tests.yml +++ b/.github/workflows/windows_tests.yml @@ -75,6 +75,7 @@ coverage run -m unittest discover -vv -p \"*_tests.py\"; - name: Show coverage statistics run: | + coverage combine || true coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1181119?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: If5655b1b8d67780454e76663f6a4f43b1947928c Gerrit-Change-Number: 1181119 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org