diff --git a/.circleci/config.yml b/.circleci/config.yml index 00b0195b76e..98660be2224 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: command: | sudo apt update sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super - pip install pip tox --upgrade + pip install pip "tox<4" - run: name: Run tests command: tox -v @@ -52,7 +52,7 @@ jobs: command: | sudo apt update sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super - pip install pip tox --upgrade + pip install pip "tox<4" - run: ssh-add -D - add_ssh_keys: fingerprints: "bf:aa:ef:e3:8d:95:11:0b:75:c7:92:52:ba:fb:e0:fc" diff --git a/.github/workflows/ci_cron_daily.yml b/.github/workflows/ci_cron_daily.yml index c9d07b3d00f..c064f388309 100644 --- a/.github/workflows/ci_cron_daily.yml +++ b/.github/workflows/ci_cron_daily.yml @@ -44,6 +44,6 @@ jobs: sudo apt-get update sudo apt-get install language-pack-de tzdata - name: Install Python dependencies - run: python -m pip install --upgrade tox + run: python -m pip install "tox<4" - name: Run tests run: tox ${{ matrix.toxargs}} -e ${{ matrix.toxenv}} -- ${{ matrix.toxposargs}} diff --git a/.github/workflows/ci_cron_weekly.yml b/.github/workflows/ci_cron_weekly.yml index 3d58f4eeb44..ebbd76bae40 100644 --- a/.github/workflows/ci_cron_weekly.yml +++ b/.github/workflows/ci_cron_weekly.yml @@ -65,7 +65,7 @@ jobs: if: ${{ matrix.toxenv == 'linkcheck' }} run: sudo apt-get install graphviz - name: Install Python dependencies - run: python -m pip install --upgrade tox + run: python -m pip install "tox<4" - name: Run tests run: tox ${{ matrix.toxargs}} -e ${{ matrix.toxenv}} -- ${{ matrix.toxposargs}} diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 7c53ec28953..6025d05a808 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -111,7 +111,7 @@ jobs: sudo apt-get update sudo apt-get install language-pack-fr tzdata libopenblas-dev - name: Install tox - run: python -m pip install --upgrade tox + run: python -m pip install "tox<4" - name: Run tests run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }} # TODO: Do we need --gcov-glob "*cextern*" ? @@ -151,7 +151,7 @@ jobs: sudo apt-get update sudo apt-get install language-pack-de tzdata - name: Install Python dependencies - run: python -m pip install --upgrade tox + run: python -m pip install "tox<4" - name: Run tests run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }} @@ -175,7 +175,7 @@ jobs: # test the ability to run the test suite in parallel. # Numpy is pinned to avoid building it from source for numpy 1.21.5 - name: Install dependencies for Python 3.8 - run: /opt/python/cp38-cp38/bin/pip install tox + run: /opt/python/cp38-cp38/bin/pip install "tox<4" - name: Run tests for Python 3.8 run: /opt/python/cp38-cp38/bin/python -m tox -e py38-numpy120-test -- -n=4 --durations=50 # We use the 3.8 build to check that running tests twice in a row in the diff --git a/tox.ini b/tox.ini index 5e5ee4d2689..77696ddc4e3 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ requires = setuptools >= 30.3.0 pip >= 19.3.1 tox-pypi-filter >= 0.12 + tox < 4 isolated_build = true [testenv]