Xqt submitted this change.

View Change

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

- fix pytest call, only active on wikipedia:test
- remove pytest options which aren't funtional
- mark test on wikipedia:test as experimental

Bug: T302671
Change-Id: Iba95075ff8c5117b2fc75f1d1a8363028f687bd1
---
M .github/workflows/pywikibot-ci.yml
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index 4f8aea9..81d476e 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -43,6 +43,7 @@
experimental: true
- python-version: "3.7"
site: "wikipedia:test"
+ experimental: true
- python-version: "3.7"
site: "wikidata:test"
- python-version: "3.9"
@@ -56,7 +57,7 @@
- python-version: "3.11.0-alpha - 3.11.0"
site: "wikipedia:test"
experimental: true
- - python-version: 3
+ - python-version: "3"
site: "wikipedia:de"
os: macOS-latest

@@ -116,10 +117,10 @@
PYWIKIBOT_TEST_PROD_ONLY: ${{ matrix.test_prod_only && 1 || 0 }}
run: |
python pwb.py version
- if [ ${{matrix.site || 0}} == 'wikipedia:test' ]; then
+ if [ ${{matrix.site || 0}} != 'wikipedia:test' ]; then
coverage run -m unittest discover -vv -p \"*_tests.py\";
else
- pytest --addopts="-vvv -s --cov=. -rsxX";
+ pytest --cov=.;
fi

- name: Upload coverage to Codecov

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iba95075ff8c5117b2fc75f1d1a8363028f687bd1
Gerrit-Change-Number: 766592
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-CC: jenkins-bot
Gerrit-MessageType: merged