From: Daniele Varrazzo Date: Wed, 7 Dec 2022 22:14:20 +0000 (+0000) Subject: ci: force the use of tox 3 X-Git-Tag: 3.1.5~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4dc71f4381c92f30d6c3e16bd261ebed171eb69;p=thirdparty%2Fpsycopg.git ci: force the use of tox 3 Work around https://github.com/tox-dev/tox/issues/2619 --- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 424ed02ae..e891abf11 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - name: Install tox - run: pip install tox + run: pip install "tox < 4" - name: Run black run: tox -e black - name: Run flake8 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 75f4a4451..fd1d255f3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -86,7 +86,8 @@ jobs: "libpq-dev=${pqver}" "libpq5=${pqver}" - name: Install tox - run: pip install tox + # https://github.com/tox-dev/tox/issues/2619 + run: pip install "tox < 4" - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} @@ -169,7 +170,7 @@ jobs: python-version: ${{ matrix.python }} - name: Install tox - run: pip install tox + run: pip install "tox < 4" - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} @@ -221,7 +222,7 @@ jobs: python-version: ${{ matrix.python }} - name: Install tox - run: pip install tox wheel + run: pip install "tox < 4" wheel - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} @@ -310,7 +311,7 @@ jobs: sudo apt-get -qq -y install "libpq-dev=${pqver}" "libpq5=${pqver}" - name: Install tox - run: pip install tox + run: pip install "tox < 4" - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} diff --git a/README.rst b/README.rst index 040c9c158..68c93a634 100644 --- a/README.rst +++ b/README.rst @@ -70,7 +70,7 @@ Please add ``--config-settings editable_mode=strict`` to the ``pip install Now hack away! You can use tox to validate the code:: - pip install tox + pip install "tox < 4" tox -p4 and to run the tests::