Skip to content

Commit 93f1915

Browse files
committed
Test across supported versions
1 parent ace5d08 commit 93f1915

File tree

5 files changed

+116
-10
lines changed

5 files changed

+116
-10
lines changed

.github/workflows/test.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@ on: [pull_request, workflow_dispatch]
44

55
jobs:
66
test:
7+
strategy:
8+
matrix:
9+
env: ["py39", "py310", "py311", "py312", "py313"]
710
runs-on: ubuntu-latest
811
timeout-minutes: 60
912
steps:
1013
- uses: actions/checkout@v4
1114
with:
1215
fetch-depth: 1
1316

14-
- name: Set up Python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version-file: .python-version
18-
1917
- name: Set up uv
2018
uses: astral-sh/setup-uv@v5
2119
with:
@@ -25,4 +23,4 @@ jobs:
2523
run: uv sync --group dev
2624

2725
- name: Test with pytest
28-
run: uv run pytest
26+
run: uv run tox -e ${{ matrix.env }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818

1919
### Supported Python Versions
2020

21-
While we only actively test under Python 3.13, we strive to support all versions from Python 3.9 and above.
21+
Python version 3.9 and above.
2222

2323
## Usage
2424

pyproject.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ Documentation = "https://developer.todoist.com/rest/"
2525

2626
[dependency-groups]
2727
dev = [
28-
"pytest>=8.0.0,<9",
2928
"pre-commit>=4.0.0,<5",
29+
"pytest>=8.0.0,<9",
30+
"pytest-asyncio>=0.26.0,<0.27",
31+
"tox>=4.15.1,<5",
32+
"tox-uv>=1.25.0,<2",
3033
"mypy~=1.11",
34+
"ruff>=0.11.0,<0.12",
3135
"responses>=0.25.3,<0.26",
32-
"pytest-asyncio>=0.26.0,<0.27",
3336
"types-requests~=2.32",
34-
"ruff>=0.11.0,<0.12",
3537
]
3638

3739
docs = [

tox.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
envlist = py39,py310,py311,py312,py313
3+
4+
[testenv]
5+
runner = uv-venv-lock-runner
6+
deps =
7+
pytest
8+
commands =
9+
pytest {posargs}

uv.lock

+97
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)