Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766583 )
Change subject: [tests] run pytest on wikipedia:test ......................................................................
[tests] run pytest on wikipedia:test
Bug: T302671 Change-Id: I67924452fe8775d048e24c664178e10b0737e0d5 --- M .github/workflows/pywikibot-ci.yml 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved
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