Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1287992?usp=email )
Change subject: tests: enable coverage for doctest, login_tests, oauth_tests
even if tests fails
......................................................................
tests: enable coverage for doctest, login_tests, oauth_tests even if tests fails
Change-Id: I348dc45c0d545e67e0f25f22b9cb7cbdc6965a7c
---
M .github/workflows/doctest.yml
M .github/workflows/login_tests-ci.yml
M .github/workflows/oauth_tests-ci.yml
3 files changed, 15 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index e4c1a4d..0b93f55 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -56,6 +56,8 @@
run: |
python -Werror::UserWarning -m pwb generate_user_files
-site:wikipedia:test -user:${{ env.PYWIKIBOT_USERNAME }} -v -debug;
- name: doctest with pytest
+ id: ci_test
+ continue-on-error: true
timeout-minutes: 5
run: |
python pwb.py version
@@ -69,3 +71,6 @@
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ - name: Check on failure
+ if: steps.ci_test.outcome == 'failure'
+ run: exit 1
diff --git a/.github/workflows/login_tests-ci.yml
b/.github/workflows/login_tests-ci.yml
index 1ab83e8..32a2f20 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -125,6 +125,8 @@
echo "password_file = os.path.expanduser('passwordfile')" >>
user-config.py
echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{
secrets.PYWIKIBOT_USERPWD }}')" > passwordfile
- name: Login test with unittest
+ id: ci_test
+ continue-on-error: true
timeout-minutes: 2
run: |
python pwb.py version
@@ -137,3 +139,6 @@
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ - name: Check on failure
+ if: steps.ci_test.outcome == 'failure'
+ run: exit 1
diff --git a/.github/workflows/oauth_tests-ci.yml
b/.github/workflows/oauth_tests-ci.yml
index ff797eb..e4b421f 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -110,6 +110,8 @@
AK: ${{ steps.split.outputs._2 }}
AS: ${{ steps.split.outputs._3 }}
- name: Oauth tests with unittest
+ id: ci_test
+ continue-on-error: true
timeout-minutes: 8
env:
PYWIKIBOT_TEST_WRITE: 1
@@ -126,3 +128,6 @@
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ - name: Check on failure
+ if: steps.ci_test.outcome == 'failure'
+ run: exit 1
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1287992?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: I348dc45c0d545e67e0f25f22b9cb7cbdc6965a7c
Gerrit-Change-Number: 1287992
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]