Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ on: [pull_request, workflow_dispatch]

jobs:
test:
strategy:
matrix:
env: ["py39", "py310", "py311", "py312", "py313"]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
Expand All @@ -25,4 +23,4 @@ jobs:
run: uv sync --group dev

- name: Test with pytest
run: uv run pytest
run: uv run tox -e ${{ matrix.env }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Automatic testing across all supported Python versions

### Fixed

- Compatibility with Python 3.9 and Python 3.10
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [

### Supported Python Versions

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

## Usage

Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ Documentation = "https://developer.todoist.com/rest/"

[dependency-groups]
dev = [
"pytest>=8.0.0,<9",
"pre-commit>=4.0.0,<5",
"pytest>=8.0.0,<9",
"pytest-asyncio>=0.26.0,<0.27",
"tox>=4.15.1,<5",
"tox-uv>=1.25.0,<2",
"mypy~=1.11",
"ruff>=0.11.0,<0.12",
"responses>=0.25.3,<0.26",
"pytest-asyncio>=0.26.0,<0.27",
"types-requests~=2.32",
"ruff>=0.11.0,<0.12",
]

docs = [
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[tox]
envlist = py39,py310,py311,py312,py313

[testenv]
runner = uv-venv-lock-runner
deps =
pytest
commands =
pytest {posargs}
97 changes: 97 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.