Skip to content

Commit ddf44bf

Browse files
committed
[tests] require coverage >= 7.6.10 with Python 3.9+
This also enables multiline exclusion regex (since 7.6.0). Bug: T380372 Change-Id: I83bf9df9b02244beb02cccb1c5963ab08cba831f
1 parent 05f715d commit ddf44bf

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/doctest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
run: |
5252
python -m pip install --upgrade pip
5353
pip --version
54-
pip install coverage
54+
pip install "coverage == 7.6.1; python_version < '3.9'"
55+
pip install "coverage >= 7.6.10; python_version > '3.8'"
5556
pip install "tomli; python_version < '3.11'"
5657
pip install mwparserfromhell
5758
pip install packaging

.github/workflows/login_tests-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
run: |
7676
python -m pip install --upgrade pip
7777
pip --version
78-
pip install coverage
78+
pip install "coverage == 7.6.1; python_version < '3.9'"
79+
pip install "coverage >= 7.6.10; python_version > '3.8'"
7980
pip install "tomli; python_version < '3.11'"
8081
pip install mwparserfromhell
8182
pip install packaging

.github/workflows/oauth_tests-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
run: |
7676
python -m pip install --upgrade pip
7777
pip --version
78-
pip install coverage
78+
pip install "coverage == 7.6.1; python_version < '3.9'"
79+
pip install "coverage >= 7.6.10; python_version > '3.8'"
7980
# tomli required for coverage due to T380697
8081
pip install "tomli; python_version < '3.11'"
8182
pip install mwparserfromhell

.github/workflows/pywikibot-ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ jobs:
9090
run: |
9191
python -m pip install --upgrade pip
9292
pip --version
93-
# T380732
94-
pip install "coverage < 7.6.2; implementation_name=='pypy' and python_version=='3.10'"
9593
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
9694
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
9795
pip install wikitextparser

dev-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ pytest-attrib>=0.1.3
77
pytest-xvfb>=3.0.0
88

99
pre-commit
10-
coverage>=5.2.1
10+
coverage==7.6.1; python_version < "3.9"
11+
coverage>=7.6.10; python_version > "3.8"
1112
# required for coverage (T380697)
1213
tomli>=2.0.1; python_version < "3.11"
1314

0 commit comments

Comments
 (0)