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

Change subject: [tests] Add experimental tests for Python 3.13
......................................................................

[tests] Add experimental tests for Python 3.13

Change-Id: Ifd235eb1ac6d7155ba454a133104700f162ca591
---
M .github/workflows/doctest.yml
M .github/workflows/oauth_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
M .github/workflows/login_tests-ci.yml
4 files changed, 53 insertions(+), 0 deletions(-)

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




diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index 8a59bed..6ab84e8 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -35,6 +35,9 @@
             os: macOS-latest
           - python-version: 3.6
             os: ubuntu-20.04
+          - python-version: "3.13"
+            site: wikipedia:test
+            experimental: true

     steps:
     - name: Checkout Repository
@@ -44,6 +47,14 @@

     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v4
+      if: ${{ matrix.python-version != '3.13' }}
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    # use deadsnakes/action until actions/setup-python supports Python 3.13
+    - name: Set up development Python ${{ matrix.python-version }}
+      uses: deadsnakes/[email protected]
+      if: ${{ matrix.python-version == '3.13' }}
       with:
         python-version: ${{ matrix.python-version }}

diff --git a/.github/workflows/login_tests-ci.yml 
b/.github/workflows/login_tests-ci.yml
index c4904e7..6677082 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -61,6 +61,9 @@
           - python-version: 3.6
             site: wikisource:zh
             os: ubuntu-20.04
+          - python-version: "3.13"
+            site: wikipedia:test
+            experimental: true

     steps:
     - name: Checkout Repository
@@ -70,6 +73,14 @@

     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v4
+      if: ${{ matrix.python-version != '3.13' }}
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    # use deadsnakes/action until actions/setup-python supports Python 3.13
+    - name: Set up development Python ${{ matrix.python-version }}
+      uses: deadsnakes/[email protected]
+      if: ${{ matrix.python-version == '3.13' }}
       with:
         python-version: ${{ matrix.python-version }}

diff --git a/.github/workflows/oauth_tests-ci.yml 
b/.github/workflows/oauth_tests-ci.yml
index 1d8eb90..466374a 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -44,6 +44,9 @@
             code: test
             domain: test.wikipedia.org
             os: ubuntu-20.04
+          - python-version: "3.13"
+            site: wikipedia:test
+            experimental: true

     steps:
     - name: Checkout Repository
@@ -53,6 +56,14 @@

     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v4
+      if: ${{ matrix.python-version != '3.13' }}
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    # use deadsnakes/action until actions/setup-python supports Python 3.13
+    - name: Set up development Python ${{ matrix.python-version }}
+      uses: deadsnakes/[email protected]
+      if: ${{ matrix.python-version == '3.13' }}
       with:
         python-version: ${{ matrix.python-version }}

diff --git a/.github/workflows/pywikibot-ci.yml 
b/.github/workflows/pywikibot-ci.yml
index 0d02106..76d3e1e 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -74,6 +74,9 @@
             site: wikisource:zh
             test_prod_only: true
             experimental: true
+          - python-version: "3.13"
+            site: wikipedia:test
+            experimental: true

     steps:
     - name: Checkout Repository
@@ -83,6 +86,14 @@

     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v4
+      if: ${{ matrix.python-version != '3.13' }}
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    # use deadsnakes/action until actions/setup-python supports Python 3.13
+    - name: Set up development Python ${{ matrix.python-version }}
+      uses: deadsnakes/[email protected]
+      if: ${{ matrix.python-version == '3.13' }}
       with:
         python-version: ${{ matrix.python-version }}


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/933872
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: Ifd235eb1ac6d7155ba454a133104700f162ca591
Gerrit-Change-Number: 933872
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