Xqt submitted this change.
[tests] Enable coverage for login/logout tests
Change-Id: I3291117cc97e3695faba945fc83707f2f58da2c7
---
M .github/workflows/login_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml
index 025f578..9e60440 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -34,15 +34,12 @@
site: False
family: wpbeta
code: en
- experimental: true
- python-version: "3.6"
site: False
family: wpbeta
code: zh
- experimental: true
- python-version: "3.5"
site: wsbeta:en
- experimental: true
- python-version: "3.7"
site: "wikipedia:test"
- python-version: "3.7"
@@ -54,11 +51,9 @@
site: "wikidata:wikidata"
- python-version: "3.8"
site: "wowwiki:uk"
- experimental: true
- 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
@@ -119,3 +114,5 @@
run: |
python pwb.py version
coverage run -m unittest -vv tests/site_login_logout_tests.py
+ - name: Upload coverage to Codecov
+ run: codecov
diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index 4026331..b1ba4c7 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -57,7 +57,6 @@
experimental: true
- python-version: "3.11.0-alpha - 3.11.0"
site: "wikipedia:test"
- experimental: true
- python-version: "3"
site: "wikipedia:de"
os: macOS-latest
@@ -111,7 +110,7 @@
echo "password_file = os.path.expanduser('passwordfile')" >> user-config.py
echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{ secrets.PYWIKIBOT_USERPWD }}')" > passwordfile
- - name: Test with unittest
+ - name: Test with unittest or pytest
env:
PYWIKIBOT_TEST_NO_RC:
${{ (matrix.site == 'wikisource:zh' || matrix.test_no_rc) && 1 || 0 }}
To view, visit change 768312. To unsubscribe, or for help writing mail filters, visit settings.