From a7633e8044f7e09bf76d6f1eccc527a1dfa744c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bosch?= Date: Mon, 2 Dec 2024 13:35:01 +0100 Subject: [PATCH] build: added tox-gh (instead of tox-gh-actions) and tox-uv --- .github/workflows/tests.yml | 17 ++++++++++++----- pyproject.toml | 15 ++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aaa4747..05223a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,15 +32,22 @@ jobs: environment-name: test-env create-args: >- python=${{ matrix.python-version }} - pip gdal>=3.3 + tox + tox-gh + tox-uv + uv - - name: install dependencies - run: pip install tox tox-gh-actions + - name: setup test suite + run: tox run -vv --notest --skip-missing-interpreters false + env: + TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }} + CONDA_EXE: mamba - - name: test with tox - run: tox + - name: run test suite + run: tox run --skip-pkg-install env: + TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }} CONDA_EXE: mamba - name: upload coverage reports to Codecov diff --git a/pyproject.toml b/pyproject.toml index 2364df0..a347ed8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,15 +113,12 @@ requires = [ "tox>=4.19", ] -[tool.tox.gh-actions] -# see https://github.com/ymyzk/tox-gh-actions/issues/198 -python = """ - 3.9: py39 - 3.10: py310 - 3.11: py311 - 3.12: py312 - 3.13: py313 - """ +[tool.tox.gh.python] +"3.13" = ["3.13", "lint"] +"3.12" = ["3.12"] +"3.11" = ["3.11"] +"3.10" = ["3.10"] +"3.9" = ["3.9"] [tool.tox.testenv] commands = [