Skip to content

Commit

Permalink
chore: pin tox to work around 3.21 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kgriffs committed Jan 9, 2021
1 parent 4dc65ec commit 419f549
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/create-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ jobs:
FALCON_ASGI_WRAP_NON_COROUTINES: Y
FALCON_TESTING_SESSION: Y
run: |
pip install 'tox>=3.20'
# TODO(kgriffs): Revisit second half of 2021 to see if we still need to pin tox
#
# See also: https://github.com/tox-dev/tox/issues/1777
#
pip install 'tox==3.20'
tox -e wheel_check -- ${{ matrix.pytest-extra }}
- name: Get wheel name
Expand Down Expand Up @@ -177,7 +181,7 @@ jobs:
FALCON_ASGI_WRAP_NON_COROUTINES: Y
FALCON_TESTING_SESSION: Y
run: |
pip install 'tox>=3.20'
pip install 'tox==3.20'
tox -e wheel_check -- ${{ matrix.pytest-extra }}
- name: Get wheel names
Expand Down Expand Up @@ -353,7 +357,7 @@ jobs:
args: |
bash -c "
export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH &&
pip install 'tox>=3.20' 'pip>=20' &&
pip install 'tox==3.20' 'pip>=20' &&
tox -e wheel_check -- ${{ matrix.pytest-extra }}
"
Expand All @@ -377,7 +381,7 @@ jobs:
args: |
bash -c "
export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH &&
pip install 'tox>=3.20' 'pip>=20' &&
pip install 'tox==3.20' 'pip>=20' &&
tox -e wheel_check -- ${{ matrix.pytest-extra }}
"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ jobs:
sudo apt-get update
sudo apt-get install -y libunwind-dev
# TODO(kgriffs): Revisit second half of 2021 to see if we still need to pin tox
#
# See also: https://github.com/tox-dev/tox/issues/1777
#
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage tox
pip install coverage tox==3.20
python --version
pip --version
tox --version
Expand Down
6 changes: 5 additions & 1 deletion tools/mintest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash

pip install -U tox coverage
# TODO(kgriffs): Revisit second half of 2021 to see if we still need to pin tox
#
# See also: https://github.com/tox-dev/tox/issues/1777
#
pip install -U tox==3.20 coverage

rm -f .coverage.*

Expand Down

0 comments on commit 419f549

Please sign in to comment.