Skip to content

Commit

Permalink
tests: run github actions with Python 3.8+
Browse files Browse the repository at this point in the history
Bug: T378893
Change-Id: If13e1756453bb9fd958651ec3c33ebf0a9c2bed7
  • Loading branch information
xqt committed Dec 3, 2024
1 parent bc3ac41 commit 698100a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 70 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,10 @@ jobs:
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
Expand All @@ -61,7 +53,6 @@ jobs:
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"
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/login_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,30 @@ jobs:
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
Expand Down Expand Up @@ -87,7 +77,6 @@ jobs:
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
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/oauth_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,19 @@ jobs:
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
Expand Down Expand Up @@ -86,7 +78,6 @@ jobs:
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'"
Expand Down
30 changes: 9 additions & 21 deletions .github/workflows/pywikibot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,29 @@ jobs:
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"
- 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
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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sysop_write_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ env:

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

strategy:
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" ]

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/windows_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
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" ]

Expand All @@ -47,10 +47,6 @@ jobs:
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;
}
Expand Down

0 comments on commit 698100a

Please sign in to comment.