Skip to content

Commit

Permalink
build: added tox-gh (instead of tox-gh-actions) and tox-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Dec 2, 2024
1 parent 8e89c68 commit a7633e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 6 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit a7633e8

Please sign in to comment.