Skip to content

Commit

Permalink
[tests] require coverage >= 7.6.10 with Python 3.9+
Browse files Browse the repository at this point in the history
This also enables multiline exclusion regex (since 7.6.0).

Bug: T380372
Change-Id: I83bf9df9b02244beb02cccb1c5963ab08cba831f
  • Loading branch information
xqt committed Dec 27, 2024
1 parent 05f715d commit ddf44bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "coverage == 7.6.1; python_version < '3.9'"
pip install "coverage >= 7.6.10; python_version > '3.8'"
pip install "tomli; python_version < '3.11'"
pip install mwparserfromhell
pip install packaging
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/login_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "coverage == 7.6.1; python_version < '3.9'"
pip install "coverage >= 7.6.10; python_version > '3.8'"
pip install "tomli; python_version < '3.11'"
pip install mwparserfromhell
pip install packaging
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/oauth_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "coverage == 7.6.1; python_version < '3.9'"
pip install "coverage >= 7.6.10; python_version > '3.8'"
# tomli required for coverage due to T380697
pip install "tomli; python_version < '3.11'"
pip install mwparserfromhell
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pywikibot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip --version
# T380732
pip install "coverage < 7.6.2; implementation_name=='pypy' and python_version=='3.10'"
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install wikitextparser
Expand Down
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ pytest-attrib>=0.1.3
pytest-xvfb>=3.0.0

pre-commit
coverage>=5.2.1
coverage==7.6.1; python_version < "3.9"
coverage>=7.6.10; python_version > "3.8"
# required for coverage (T380697)
tomli>=2.0.1; python_version < "3.11"

Expand Down

0 comments on commit ddf44bf

Please sign in to comment.