diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index cdcaafafd6..17b86d7070 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -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 diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml index dcea789154..2591d256bf 100644 --- a/.github/workflows/login_tests-ci.yml +++ b/.github/workflows/login_tests-ci.yml @@ -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 diff --git a/.github/workflows/oauth_tests-ci.yml b/.github/workflows/oauth_tests-ci.yml index 169785ed2a..c5762b551e 100644 --- a/.github/workflows/oauth_tests-ci.yml +++ b/.github/workflows/oauth_tests-ci.yml @@ -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 diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml index 873ae9d988..504a81d3ea 100644 --- a/.github/workflows/pywikibot-ci.yml +++ b/.github/workflows/pywikibot-ci.yml @@ -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 diff --git a/dev-requirements.txt b/dev-requirements.txt index 542a55805b..7617720802 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -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"