Skip to content

Commit 4255139

Browse files
committed
🧪🚑 Cap tox in CI below v4.12
This is a workaround for a tox v4.12.0 regression per tox-dev/tox#3193. The outcome is that this will recover the GHA job summary showing the Towncrier log preview.
1 parent ef77a85 commit 4255139

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

.github/workflows/ci-cd.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ env:
8080
PY_COLORS
8181
PYTEST_THEME
8282
PYTEST_THEME_MODE
83+
TOX_VERSION: tox < 4.12
8384

8485

8586
jobs:
@@ -445,7 +446,7 @@ jobs:
445446
python -m
446447
pip install
447448
--user
448-
tox
449+
'${{ env.TOX_VERSION }}'
449450
450451
- name: Pre-populate the tox env
451452
run: >-
@@ -651,7 +652,11 @@ jobs:
651652
# make install/strip
652653
# working_directory: libssh/build
653654
- name: Install tox
654-
run: python -m pip install --user tox
655+
run: >-
656+
python -m
657+
pip install
658+
--user
659+
'${{ env.TOX_VERSION }}'
655660
- name: >-
656661
Calculate Python interpreter version hash value
657662
for use in the cache key
@@ -928,7 +933,7 @@ jobs:
928933
python -m
929934
pip install
930935
--user
931-
tox
936+
'${{ env.TOX_VERSION }}'
932937
933938
- name: Pre-populate the tox env
934939
run: >-
@@ -1104,7 +1109,7 @@ jobs:
11041109
python -m
11051110
pip install
11061111
--user
1107-
tox
1112+
'${{ env.TOX_VERSION }}'
11081113
11091114
- name: Pre-populate the tox env
11101115
run: >-
@@ -1260,7 +1265,7 @@ jobs:
12601265
python -m
12611266
pip install
12621267
--user
1263-
tox
1268+
'${{ env.TOX_VERSION }}'
12641269
12651270
- name: Pre-populate the tox env
12661271
run: >-
@@ -1813,7 +1818,7 @@ jobs:
18131818
python -m
18141819
pip install
18151820
--user
1816-
tox
1821+
'${{ env.TOX_VERSION }}'
18171822
18181823
- name: Download all the dists
18191824
uses: actions/download-artifact@v3
@@ -2037,7 +2042,7 @@ jobs:
20372042
python -m
20382043
pip install
20392044
--user
2040-
tox
2045+
'${{ env.TOX_VERSION }}'
20412046
20422047
- name: Download all the dists
20432048
uses: actions/download-artifact@v3
@@ -2181,7 +2186,7 @@ jobs:
21812186
python -m
21822187
pip install
21832188
--user
2184-
tox
2189+
'${{ env.TOX_VERSION }}'
21852190
- name: Pre-populate tox env
21862191
run: python -m tox -p auto --parallel-live -vvvv --notest
21872192
- name: Download all the dists

.github/workflows/reusable-linters.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: 🚨
55
on: # yamllint disable-line rule:truthy
66
workflow_call:
77

8+
env:
9+
TOX_VERSION: tox < 4.12
10+
811
jobs:
912
linters:
1013
name: >-
@@ -78,8 +81,11 @@ jobs:
7881
${{ runner.os }}-pip-
7982
${{ runner.os }}-
8083
- name: Install tox
81-
run: |
82-
python -m pip install --upgrade tox
84+
run: >-
85+
python -m
86+
pip install
87+
--user
88+
'${{ env.TOX_VERSION }}'
8389
- name: Log installed dists
8490
run: python -m pip freeze --all
8591
- name: Initialize tox envs

0 commit comments

Comments
 (0)