Commit 2e5b2ea
authored
ci: test Python 3.11 through 3.15 (#145)
## Summary
Tests the package on every Python it supports, and declares that set.
- A `test` job runs the suite on 3.11, 3.12, 3.13, 3.14 and 3.15 (3.15
is a release candidate until its October release). The existing job
keeps lint, format, type, dead-code and coverage checks on 3.12.
- The classifiers name 3.11 through 3.15.
- Ruff targets py311, matching `requires-python = ">=3.11"`. 3.10, which
reaches end of life in October, was already outside the supported range.
- The new target's UP017 rule moves two `timezone.utc` uses to
`datetime.UTC`, the same object.
## Type of change
- [ ] Bug fix (no breaking change)
- [ ] New feature (no breaking change)
- [ ] Breaking change (existing callers must update)
- [x] Docs, tests, or internal maintenance only
## Public API
None.
## Test plan
The suite was run locally on each interpreter with a separate
environment per version: 1886 passed and 4 skipped on 3.11, 3.12, 3.13
and 3.14. On macOS, 3.15.0rc2 cannot import pydantic-core's published
3.15 wheel (the dynamic loader rejects the binary), which is outside
this package; the Linux job in this PR's CI is the evidence for 3.15.
ruff, format, ty (package and examples), vulture and the full suite on
3.12 pass locally.
## Checklist
- [x] Tests cover the new behavior, and the suite passes locally
- [x] Lint, format, and type checks pass
- [x] Docs and README examples updated if the public surface changed (no
public surface changed)
- [x] No secrets, credentials, or personal data in the diff or the tests1 parent cf8571c commit 2e5b2ea
5 files changed
Lines changed: 34 additions & 5 deletions
File tree
- .github/workflows
- agentscore_commerce
- examples
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments