Xqt submitted this change.

View Change

Approvals: Xqt: Verified; Looks good to me, approved
[tests] Test Pywikibot with Python 3.12

Change-Id: I521d816b2fd91beed903984f7c5b5c3cb2036983
---
M .github/workflows/doctest.yml
M .github/workflows/login_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
3 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index 1afe6c9..34c3aeb 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -20,19 +20,31 @@

strategy:
fail-fast: false
- max-parallel: 6
+ max-parallel: 7

matrix:
os: [ "windows-latest", "macOS-latest", "ubuntu-latest" ]
- python-version: ["pypy3.7", "3.11.0-dev - 3.11", "3.6" ]
+ python-version: ["pypy3.7", "3.11", "3.6" ]
+ include:
+ - python-version: "3.12"
+ os: ubuntu-latest

steps:
- - uses: actions/checkout@v3
+ - name: Checkout Repository
+ uses: actions/checkout@v3
with:
submodules: true

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

diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml
index ed56512..33b7581 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -28,7 +28,7 @@
max-parallel: 1

matrix:
- python-version: ["pypy3.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
+ python-version: ["pypy3.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
site: ["wikipedia:en", "wikisource:zh"]
test_prod_only: [true]
include:
@@ -53,19 +53,28 @@
site: "wikidata:wikidata"
- python-version: "3.8"
site: "wowwiki:uk"
- - python-version: "3.11.0-alpha - 3.11.0"
+ - python-version: "3.12"
site: "wikipedia:test"
- python-version: "3"
site: "wikipedia:de"
os: macOS-latest

steps:
- - uses: actions/checkout@v3
+ - name: Checkout Repository
+ uses: actions/checkout@v3
with:
submodules: true

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

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index f8c80b9..ef60896 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -29,7 +29,7 @@
max-parallel: 10

matrix:
- python-version: ["pypy3.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
+ python-version: ["pypy3.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
site: ["wikipedia:en", "wikisource:zh"]
test_prod_only: [true]
include:
@@ -60,19 +60,28 @@
- python-version: "3.8"
site: "wowwiki:uk"
experimental: true
- - python-version: "3.11.0-alpha - 3.11.0"
+ - python-version: "3.12"
site: "wikipedia:test"
- python-version: "3"
site: "wikipedia:de"
os: macOS-latest

steps:
- - uses: actions/checkout@v3
+ - name: Checkout Repository
+ uses: actions/checkout@v3
with:
submodules: true

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


To view, visit change 853495. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I521d816b2fd91beed903984f7c5b5c3cb2036983
Gerrit-Change-Number: 853495
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-MessageType: merged