Xqt submitted this change.

View Change

Approvals: Xqt: Verified; Looks good to me, approved
[tests] run pytest on wikipedia:test

Bug: T302671
Change-Id: I67924452fe8775d048e24c664178e10b0737e0d5
---
M .github/workflows/pywikibot-ci.yml
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index 894fc0d..4f8aea9 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -116,7 +116,11 @@
PYWIKIBOT_TEST_PROD_ONLY: ${{ matrix.test_prod_only && 1 || 0 }}
run: |
python pwb.py version
- coverage run -m unittest discover -vv -p \"*_tests.py\"
+ if [ ${{matrix.site || 0}} == 'wikipedia:test' ]; then
+ coverage run -m unittest discover -vv -p \"*_tests.py\";
+ else
+ pytest --addopts="-vvv -s --cov=. -rsxX";
+ fi

- name: Upload coverage to Codecov
run: codecov

To view, visit change 766583. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I67924452fe8775d048e24c664178e10b0737e0d5
Gerrit-Change-Number: 766583
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-MessageType: merged