From 045c40c824d36493b6fc0d742e8265a88d61551b Mon Sep 17 00:00:00 2001 From: Peter Schutt Date: Mon, 16 Jan 2023 14:46:29 +1000 Subject: [PATCH] ci: pin tox version Ref: https://github.com/tox-dev/tox/issues/2863 --- .github/workflows/ci.yml | 10 +++++----- tox.ini | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd365ecb..d679d5b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: with: python-version: ${{env.PYTHON_LATEST}} - name: Install Dependencies - run: python -m pip install --upgrade wheel tox + run: python -m pip install --upgrade wheel tox==4.2.8 - run: python -m tox -e pylint mypy: name: mypy @@ -55,7 +55,7 @@ jobs: with: python-version: ${{env.PYTHON_LATEST}} - name: Install Dependencies - run: python -m pip install --upgrade wheel tox + run: python -m pip install --upgrade wheel tox==4.2.8 - run: python -m tox -e mypy pyright: name: pyright @@ -77,7 +77,7 @@ jobs: with: python-version: ${{env.PYTHON_LATEST}} - name: Install Dependencies - run: python -m pip install --upgrade wheel tox + run: python -m pip install --upgrade wheel tox==4.2.8 - run: python -m tox -e pyright tests: name: tests on ${{matrix.python-version}} @@ -107,7 +107,7 @@ jobs: with: python-version: ${{matrix.python-version}} - name: Install Dependencies - run: python -m pip install --upgrade wheel tox tox-gh-actions + run: python -m pip install --upgrade wheel tox==4.2.8 tox-gh-actions - run: python -m tox - name: Upload Coverage Data uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # @v3.1.1 @@ -132,7 +132,7 @@ jobs: - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 #v4.4.0 with: python-version: ${{env.PYTHON_LATEST}} - - run: python -m pip install --upgrade wheel tox + - run: python -m pip install --upgrade wheel tox==4.2.8 - name: Download coverage data uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # @v3.0.1 with: diff --git a/tox.ini b/tox.ini index e94a6eb2..630c9bff 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [gh-actions] python = 3.10: py310 - 3.11: py311,integration + 3.11: py311,pytest-plugin,integration [tox] envlist = pylint,mypy,pyright,py310,py311,pytest-plugin,integration,coverage @@ -15,7 +15,6 @@ commands = coverage run -p -m pytest {posargs} [testenv:pytest-plugin] -basepython = python3.11 commands = coverage run -p -m pytest tests/pytest_plugin {posargs} [testenv:coverage]