From 6d341a806f4d20949f0ccb0fca3d91cc2f6d4fb7 Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 22 Sep 2023 14:32:18 +0200 Subject: [PATCH] Define patch version for python and compatible tox version. --- .github/workflows/tox.yml | 4 ++-- requirements-ci.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 requirements-ci.txt diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index a68f44c2..8cddf854 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.6", "3.8"] + python-version: ["3.6.15", "3.8.18"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox tox-gh-actions + pip install -r requirements-ci.txt - name: "Run tox for ${{ matrix.python-version }}" run: | tox diff --git a/requirements-ci.txt b/requirements-ci.txt new file mode 100644 index 00000000..3fa96f9a --- /dev/null +++ b/requirements-ci.txt @@ -0,0 +1,4 @@ +# Different versions of tox are required by python version +tox-gh-actions +tox==3.28.0 ; python_version == "3.6" +tox==4.6.4 ; python_version == "3.8"