Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766592 )
Change subject: [tests] run pytest on wikipedia:test ......................................................................
[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(-)
Approvals: Xqt: Verified; Looks good to me, approved
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
pywikibot-commits@lists.wikimedia.org