From 0af364ec3f7fdcec9f7aa2d8119f5ad23e6df439 Mon Sep 17 00:00:00 2001 From: bunny-therapist Date: Wed, 28 Jun 2023 18:06:47 +0200 Subject: [PATCH 1/4] Remove passing env to tox It will run the python that exists. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65d3526..c0cdba6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,4 +23,4 @@ jobs: python -m pip install --upgrade pip pip install tox - name: Run tox - run: tox -e py$(sed 's/\.//' ${{ matrix.python_version }}) \ No newline at end of file + run: tox \ No newline at end of file From 5aec2d78d254169d68e9e1224846f3afaae4556a Mon Sep 17 00:00:00 2001 From: bunny-therapist Date: Wed, 28 Jun 2023 18:07:15 +0200 Subject: [PATCH 2/4] Upgrade checkout action to v3 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c0cdba6..5d46348 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: python_version: ["3.8", "3.9", "3.10", "3.11"] runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python_version }} uses: actions/setup-python@v2 with: From 4ab1f176de104c17859494f1f0e98863fe7283eb Mon Sep 17 00:00:00 2001 From: bunny-therapist Date: Wed, 28 Jun 2023 18:08:15 +0200 Subject: [PATCH 3/4] Upgrade setup-python action to v4 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5d46348..72bbb06 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python_version }} - name: Install dependencies From 14130cfbd1966425102177487cd8173e6856abb5 Mon Sep 17 00:00:00 2001 From: bunny-therapist Date: Wed, 28 Jun 2023 18:23:39 +0200 Subject: [PATCH 4/4] Use tox-gh-actions to run correct tox envs --- .github/workflows/ci.yaml | 4 ++-- tox.ini | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 72bbb06..495bcca 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: python-version: ${{ matrix.python_version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install tox + python -m pip install --upgrade pip wheel + python -m pip install tox==4.* tox-gh-actions==3.* - name: Run tox run: tox \ No newline at end of file diff --git a/tox.ini b/tox.ini index 0ed5394..fc18d01 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,14 @@ [tox] envlist = py38,py39,py310,py311 isolated_build = True +minversion = 4.0.0 + +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 [testenv] deps =