Skip to content

Commit 66f3b0b

Browse files
authored
Fix tox version for CI (#3081)
Fixes #3079
1 parent edf4d6c commit 66f3b0b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/public-api-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
python-version: 3.9
3535

3636
- name: Install tox
37-
run: pip install -U tox-factor
37+
run: pip install tox==3.27.1 -U tox-factor
3838

3939
- name: Public API Check
4040
run: tox -e public-symbols-check

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
python-version: ${{ env[matrix.python-version] }}
4747
architecture: 'x64'
4848
- name: Install tox
49-
run: pip install -U tox-factor
49+
run: pip install tox==3.27.1 -U tox-factor
5050
- name: Cache tox environment
5151
# Preserves .tox directory between runs for faster installs
5252
uses: actions/cache@v2
@@ -99,7 +99,7 @@ jobs:
9999
python-version: 3.9
100100
architecture: 'x64'
101101
- name: Install tox
102-
run: pip install -U tox
102+
run: pip install tox==3.27.1
103103
- name: Cache tox environment
104104
# Preserves .tox directory between runs for faster installs
105105
uses: actions/cache@v2
@@ -142,7 +142,7 @@ jobs:
142142
python-version: ${{ env[matrix.python-version] }}
143143
architecture: 'x64'
144144
- name: Install tox
145-
run: pip install -U tox-factor
145+
run: pip install tox==3.27.1 -U tox-factor
146146
- name: Cache tox environment
147147
# Preserves .tox directory between runs for faster installs
148148
uses: actions/cache@v2

CONTRIBUTING.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ during their normal contribution hours.
4747

4848
This project uses [tox](https://tox.readthedocs.io) to automate
4949
some aspects of development, including testing against multiple Python versions.
50-
To install `tox`, run:
50+
To install `tox`, run[^1]:
5151

5252
```console
53-
$ pip install tox
53+
$ pip install tox==3.27.1
5454
```
5555

56+
[^1]: Right now we are experiencing issues with `tox==4.x.y`, so we recommend you use this version.
57+
5658
You can run `tox` with the following arguments:
5759

5860
- `tox` to run all existing tox commands, including unit tests for all packages

0 commit comments

Comments
 (0)