Skip to content

Commit d0d8970

Browse files
committed
v0.1.2: enable tests in CI, multi-Python via tox
Local testing is now just `uv run tox`
1 parent c85f594 commit d0d8970

3 files changed

Lines changed: 261 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,14 @@ jobs:
8787
with:
8888
python-version-file: "pyproject.toml"
8989

90-
# This will be needed for tests, once we have tests:
91-
# - name: Install the project
92-
# run: uv sync --locked --all-extras --dev
90+
- name: Install the project
91+
run: uv sync --locked --all-extras --dev
9392

9493
- name: Build
9594
run: uv build --no-sources
9695

97-
# TODO: tests, once we have tests
98-
# Reconsider runs-on if so, beware ubuntu-slim size and run duration limits
96+
- name: Test across Python versions
97+
run: uv run tox
9998

10099
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
101100
with:

pyproject.toml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[project]
22
name = "mutable-url"
3-
version = "0.1.1" # will bump to 1.0.0 via trusted publishing
3+
version = "0.1.2" # will bump to 1.0.0 once done with tests and CI; code is unchanging (trusted publishing is now setup)
44
description = "MutableURL class for editing URLs"
55
readme = "README.md"
66
license = "ISC"
77
authors = [
88
{ name="Phil Pennock", email="python-pkgs@pennock-tech.com" },
99
]
1010
classifiers = [
11-
"Development Status :: 5 - Production/Stable", # FIXME: it's 0.1.0 but only until we switch to trusted publishing
11+
"Development Status :: 5 - Production/Stable",
1212
"Intended Audience :: Developers",
1313
"Programming Language :: Python :: 3",
1414
"Operating System :: OS Independent",
@@ -18,7 +18,7 @@ keywords = [
1818
"url", "mutability", "mutable"
1919
]
2020

21-
requires-python = ">=3.14"
21+
requires-python = ">=3.10"
2222
dependencies = []
2323

2424
[project.urls]
@@ -34,5 +34,14 @@ dev = [
3434
"ruff",
3535
"ty",
3636

37-
"pytest"
37+
"pytest",
38+
"tox",
39+
"tox-uv",
3840
]
41+
42+
[tool.ruff]
43+
target-version = "py310"
44+
45+
[tool.tox]
46+
requires = ["tox-uv>=1.25"]
47+
env_list = ["py310", "py311", "py312", "py313", "py314"]

0 commit comments

Comments
 (0)