Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1100108?usp=email )
Change subject: tests: run github actions with Python 3.8+
......................................................................
tests: run github actions with Python 3.8+
Bug: T378893
Change-Id: If13e1756453bb9fd958651ec3c33ebf0a9c2bed7
---
M .github/workflows/doctest.yml
M .github/workflows/login_tests-ci.yml
M .github/workflows/oauth_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
M .github/workflows/sysop_write_tests-ci.yml
M .github/workflows/windows_tests.yml
6 files changed, 25 insertions(+), 71 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index e14c36b..cdcaafa 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -23,18 +23,10 @@
max-parallel: 17
matrix:
- python-version: [ "pypy3.7", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13" ]
+ python-version: [ "pypy3.8", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13" ]
os: [ windows-latest, macOS-latest, ubuntu-latest ]
include:
- python-version: "3.14-dev"
- # ubuntu-22.04 required for Python 3.7
- - python-version: "3.7"
- os: windows-latest
- - python-version: "3.7"
- os: ubuntu-22.04
- exclude:
- - os: macOS-latest
- python-version: "pypy3.7"
steps:
- name: Checkout Repository
@@ -61,7 +53,6 @@
pip --version
pip install coverage
pip install "tomli; python_version < '3.11'"
- pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
pip install packaging
pip install "PyMySQL >= 1.0.0"
diff --git a/.github/workflows/login_tests-ci.yml
b/.github/workflows/login_tests-ci.yml
index 168790a..dcea789 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -23,40 +23,30 @@
max-parallel: 1
matrix:
- python-version: [ "pypy3.7", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
+ python-version: [ "pypy3.8", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
site: [ "wikipedia:en", "wikisource:zh", "wikipedia:test" ]
include:
- # ubuntu-22.04 required for Python 3.7
- - python-version: "3.7"
- site: wikipedia:en
- os: ubuntu-22.04
- - python-version: "3.7"
- site: wikisource:zh
- os: ubuntu-22.04
- - python-version: "3.7"
- site: wikipedia:test
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
site: False
family: wpbeta
code: en
os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
site: False
family: wpbeta
code: zh
os: ubuntu-22.04
- - python-version: "3.8"
+ - python-version: "3.9"
site: wsbeta:en
- - python-version: "3.7"
+ - python-version: "3.8"
site: wikidata:test
os: ubuntu-22.04
- - python-version: "3.9"
+ - python-version: "3.10"
site: wiktionary:ar
- - python-version: "3.7"
+ - python-version: "3.8"
site: wikidata:wikidata
os: ubuntu-22.04
- - python-version: "3.8"
+ - python-version: "3.9"
site: wowwiki:uk
- python-version: 3
site: wikipedia:de
@@ -87,7 +77,6 @@
pip --version
pip install coverage
pip install "tomli; python_version < '3.11'"
- pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
pip install packaging
pip install requests
diff --git a/.github/workflows/oauth_tests-ci.yml
b/.github/workflows/oauth_tests-ci.yml
index 2af22aa..169785e 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -23,27 +23,19 @@
fail-fast: false
matrix:
- python-version: [ "pypy3.7", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
+ python-version: [ "pypy3.8", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
family: [ wikipedia ]
code: [ test ]
domain: [ "test.wikipedia.org" ]
include:
- # ubuntu-22.04 required for Python 3.7
- - python-version: "3.7"
- family: wikipedia
- code: test
- domain: test.wikipedia.org
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
family: wpbeta
code: en
domain: en.wikipedia.beta.wmflabs.org
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
family: wpbeta
code: zh
domain: zh.wikipedia.beta.wmflabs.org
- os: ubuntu-22.04
steps:
- name: Checkout Repository
@@ -86,7 +78,6 @@
pip install coverage
# tomli required for coverage due to T380697
pip install "tomli; python_version < '3.11'"
- pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
# PyJWT added due to T380270
pip install "PyJWT != 2.10.0, != 2.10.1 ; python_version > '3.8'"
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index 7aae45c..f888c0e 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -26,41 +26,29 @@
max-parallel: 18
matrix:
- python-version: [ "pypy3.7", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
+ python-version: [ "pypy3.8", "pypy3.10", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13", "3.14-dev" ]
site: [ "wikipedia:en", "wikisource:zh" ]
include:
- # ubuntu-22.04 required for Python 3.7
- - python-version: "3.7"
- site: wikipedia:en
- os: ubuntu-22.04
- - python-version: "3.7"
- site: wikisource:zh
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
site: wikipedia:test
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
site: False
family: wpbeta
code: en
- os: ubuntu-22.04
- - python-version: "3.7"
+ - python-version: "3.8"
site: False
family: wpbeta
code: zh
- os: ubuntu-22.04
- - python-version: "3.8"
- site: wsbeta:en
- - python-version: "3.7"
- site: wikidata:test
- os: ubuntu-22.04
- python-version: "3.9"
+ site: wsbeta:en
+ - python-version: "3.8"
+ site: wikidata:test
+ - python-version: "3.10"
site: wiktionary:ar
test_no_rc: true
- - python-version: "3.7"
- site: wikidata:wikidata
- os: ubuntu-22.04
- python-version: "3.8"
+ site: wikidata:wikidata
+ - python-version: "3.9"
site: wowwiki:uk
- python-version: "3"
site: wikipedia:de
diff --git a/.github/workflows/sysop_write_tests-ci.yml
b/.github/workflows/sysop_write_tests-ci.yml
index 536010d..a840945 100644
--- a/.github/workflows/sysop_write_tests-ci.yml
+++ b/.github/workflows/sysop_write_tests-ci.yml
@@ -15,8 +15,7 @@
jobs:
build:
- # ubuntu-22.04 required for Python 3.7
- runs-on: "ubuntu-22.04"
+ runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental || false }}
timeout-minutes: 100
@@ -24,7 +23,7 @@
fail-fast: false
matrix:
- python-version: [ "3.7" ]
+ python-version: [ "3.8" ]
site: [ "wikipedia:test" ]
attr: [ "write and not rights", "write and rights", "rights and not
write" ]
diff --git a/.github/workflows/windows_tests.yml
b/.github/workflows/windows_tests.yml
index 5a24fbc..1abdf46 100644
--- a/.github/workflows/windows_tests.yml
+++ b/.github/workflows/windows_tests.yml
@@ -23,7 +23,7 @@
fail-fast: false
matrix:
- python-version: [ "3.7.1", "3.7", "3.8", "3.9", "3.10", "3.11",
"3.12", "3.13" ]
+ python-version: [ "3.8.0", "3.8", "3.9", "3.10", "3.11", "3.12",
"3.13" ]
python-arch: [ x64, x86 ]
site: [ "wikipedia:en" ]
@@ -47,10 +47,6 @@
python -c "import struct; print('PYTHON_ARCH:', struct.calcsize('P')
<< 3)"
python -m pip install --upgrade pip
pip --version
- if ('${{ matrix.python-version }}' -eq '3.7.1') {
- pip install -U setuptools;
- pip install "urllib3<2.0";
- }
if ('${{ matrix.python-version }}' -ge '3.12') {
pip install -U setuptools;
}
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1100108?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If13e1756453bb9fd958651ec3c33ebf0a9c2bed7
Gerrit-Change-Number: 1100108
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]