jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/971569 )

Change subject: [tests] Revert Don't cover code with Python 3.13"
......................................................................

[tests] Revert Don't cover code with Python 3.13"

This reverts commit e1749bf8e9197b4622f818a37d1dd4c78e7c9b49.

Seems this issue is solved with Python 3.13.0a1

Bug: T346862
Change-Id: Ib061e66856717765e437a514bff9cba128c7a42e
---
M .github/workflows/doctest.yml
M .github/workflows/write_tests-ci.yml
M .github/workflows/oauth_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
M .github/workflows/login_tests-ci.yml
5 files changed, 19 insertions(+), 63 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index 60db4c9..c6c649c 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -71,24 +71,14 @@
       run: |
         python -Werror::UserWarning -m pwb generate_user_files 
-site:wikipedia:test -user:${{ env.PYWIKIBOT_USERNAME }} -v -debug;

-    - name: doctest with pytest and coverage
-      if: ${{ matrix.python-version != '3.13-dev' }}
+    - name: doctest with pytest
       timeout-minutes: 5
       run: |
         python pwb.py version
         pytest --version
         coverage run -m pytest pywikibot --doctest-modules 
--ignore-glob="*gui.py" --ignore-glob="*memento.py"

-    - name: doctest with pytest without coverage due to T346862
-      if: ${{ matrix.python-version == '3.13-dev' }}
-      timeout-minutes: 5
-      run: |
-        python pwb.py version
-        pytest --version
-        pytest pywikibot --doctest-modules --ignore-glob="*gui.py" 
--ignore-glob="*memento.py"
-
     - name: Show coverage statistics
-      if: ${{ matrix.python-version != '3.13-dev' }}
       run: |
         coverage report

diff --git a/.github/workflows/login_tests-ci.yml 
b/.github/workflows/login_tests-ci.yml
index 5404ca4..0fe95ca 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -123,22 +123,13 @@
         echo "password_file = os.path.expanduser('passwordfile')" >> 
user-config.py
         echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{ secrets.PYWIKIBOT_USERPWD 
}}')" > passwordfile

-    - name: Test with unittest and coverage
-      if: ${{ matrix.python-version != '3.13-dev' }}
+    - name: Test with unittest
       timeout-minutes: 2
       run: |
         python pwb.py version
         coverage run -m unittest -vv tests/site_login_logout_tests.py

-    - name: Test with unittest without coverage due to T346862
-      if: ${{ matrix.python-version == '3.13-dev' }}
-      timeout-minutes: 2
-      run: |
-        python pwb.py version
-        python -m unittest -vv tests/site_login_logout_tests.py
-
     - name: Show coverage statistics
-      if: ${{ matrix.python-version != '3.13-dev' }}
       run: |
         coverage report

diff --git a/.github/workflows/oauth_tests-ci.yml 
b/.github/workflows/oauth_tests-ci.yml
index f213001..8b62c44 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -108,8 +108,7 @@
         echo "maximum_GET_length = 5000" >> user-config.py
         echo "console_encoding = 'utf8'" >> user-config.py

-    - name: Oauth tests with unittest and coverage
-      if: ${{ matrix.python-version != '3.13-dev' }}
+    - name: Oauth tests with unittest
       timeout-minutes: 2
       env:
         PYWIKIBOT_TEST_OAUTH: ${{ secrets[format('{0}', 
steps.token.outputs.uppercase)] }}
@@ -117,17 +116,7 @@
         python pwb.py version
         coverage run -m unittest -vv tests/oauth_tests.py

-    - name: Oauth test with unittest without coverage due to T346862
-      if: ${{ matrix.python-version == '3.13-dev' }}
-      timeout-minutes: 2
-      env:
-        PYWIKIBOT_TEST_OAUTH: ${{ secrets[format('{0}', 
steps.token.outputs.uppercase)] }}
-      run: |
-        python pwb.py version
-        unittest -vv tests/oauth_tests.py
-
     - name: Show coverage statistics
-      if: ${{ matrix.python-version != '3.13-dev' }}
       run: |
         coverage report

diff --git a/.github/workflows/pywikibot-ci.yml 
b/.github/workflows/pywikibot-ci.yml
index bb661c6..1b4ff71 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -137,8 +137,7 @@
         echo "password_file = os.path.expanduser('passwordfile')" >> 
user-config.py
         echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{ secrets.PYWIKIBOT_USERPWD 
}}')" > passwordfile

-    - name: Test with unittest or pytest and coverage
-      if: ${{ matrix.python-version != '3.13-dev' }}
+    - name: Test with unittest or pytest
       id: ci_test
       continue-on-error: true
       timeout-minutes: 90
@@ -154,21 +153,7 @@
           pytest --cov=.;
         fi

-    - name: Test with unittest without coverage due to T346862
-      if: ${{ matrix.python-version == '3.13-dev' }}
-      id: ci_test_no_cover
-      continue-on-error: true
-      timeout-minutes: 90
-      env:
-        PYWIKIBOT_TEST_NO_RC:
-          ${{ (matrix.site == 'wikisource:zh' || matrix.test_no_rc) && 1 || 0 
}}
-        PYWIKIBOT_TEST_PROD_ONLY: ${{ matrix.test_prod_only && 1 || 0 }}
-      run: |
-        python pwb.py version
-        python -m unittest discover -vv -p \"*_tests.py\";
-
     - name: Show coverage statistics
-      if: ${{ matrix.python-version != '3.13-dev' }}
       run: |
         coverage report

diff --git a/.github/workflows/write_tests-ci.yml 
b/.github/workflows/write_tests-ci.yml
index 34a2f56..06cf699 100644
--- a/.github/workflows/write_tests-ci.yml
+++ b/.github/workflows/write_tests-ci.yml
@@ -65,8 +65,7 @@
         echo "password_file = os.path.expanduser('passwordfile')" >> 
user-config.py
         echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{ secrets.PYWIKIBOT_USERPWD 
}}')" > passwordfile

-    - name: Write test with pytest and coverage
-      if: ${{ matrix.python-version != '3.13-dev' }}
+    - name: Write tests with pytest
       id: ci_test
       continue-on-error: true
       timeout-minutes: 90
@@ -76,19 +75,7 @@
         python pwb.py version
         pytest -a write --cov=.;

-    - name: Write test with pytest without coverage due to T346862
-      if: ${{ matrix.python-version == '3.13-dev' }}
-      id: ci_test_no_cover
-      continue-on-error: true
-      timeout-minutes: 90
-      env:
-        PYWIKIBOT_TEST_WRITE: ${{ matrix.site == 'wikipedia:test' && 1 || 0}}
-      run: |
-        python pwb.py version
-        pytest -a write
-
     - name: Show coverage statistics
-      if: ${{ matrix.python-version != '3.13-dev' }}
       run: |
         coverage report


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/971569
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib061e66856717765e437a514bff9cba128c7a42e
Gerrit-Change-Number: 971569
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to