Skip to content

Commit

Permalink
build: upgrade and adapt uv & test config
Browse files Browse the repository at this point in the history
  • Loading branch information
boidolr committed Jan 25, 2025
1 parent 3b9faa6 commit bf8ccad
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 69 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
build:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["310", "311", "312", "313"]
runner: [ubuntu-latest]
include:
- python-version: "3.13"
- python-version: "313"
runner: macos-latest
- python-version: "3.13"
- python-version: "313"
runner: windows-latest
runs-on: ${{ matrix.runner }}
env:
# renovate: datasource=github-releases depName=astral-sh/uv
UV_VERSION: "0.5.13"
UV_VERSION: "0.5.24"

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand All @@ -46,7 +46,7 @@ jobs:
run: uv tool install tox --with tox-uv

- name: Execute tests
run: tox --runner virtualenv -e ${{ matrix.python-version }}
run: tox -e py${{ matrix.python-version }}

precommit:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module = "tests.*"
disallow_untyped_defs = false

[tool.tox]
requires = ["tox>=4.19"]
requires = ["tox>=4.19", "tox-uv>=1.19.1"]
envlist = ["py310", "py311", "py312", "py313", "pre-commit"]
isolated_build = true

Expand All @@ -119,7 +119,7 @@ description = "Run test under {base_python}"
commands = [["pytest", { replace = "posargs", default = ["tests"], extend = true }]]
extras = ["tests", "svg", "avif"]
runner = "uv-venv-lock-runner"
uv_sync_flags = ["--python={env_python}", "--no-editable"]
uv_sync_flags = ["--no-editable"]

[tool.tox.env.pre-commit]
description = "run commit hooks on code base"
Expand Down
Loading

0 comments on commit bf8ccad

Please sign in to comment.