Skip to content

Commit e3aff06

Browse files
authored
make test timezone aware (#543)
* make test timezone aware * support older pythons also * add python 3.13 testing * enable more checks * test with py3.9 and use uv * disable this check * we actually want to use python 3.10 * exclude this combo * make 2.0.1 release
1 parent ba425bd commit e3aff06

14 files changed

+63
-46
lines changed

.github/workflows/linux-build-test-amd64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
matrix:
4141
os: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
42-
python-version: ["3.9", "3.10", "3.11", "3.12"]
42+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4343
steps:
4444
- name: Checkout
4545
uses: actions/checkout@v4

.github/workflows/linux-build-test-arm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-20.04
4242
strategy:
4343
matrix:
44-
python-version: ["3.9", "3.10", "3.11", "3.12"]
44+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4545
steps:
4646
- name: Checkout
4747
uses: actions/checkout@v4

.github/workflows/linux-test-with-deb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build:
99
strategy:
1010
matrix:
11-
python-version: ["3.9", "3.10", "3.11", "3.12"]
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1212
runs-on: ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]
1313
runs-on: ${{ matrix.runs-on }}
1414
steps:

.github/workflows/osx-build-test-amd64.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ jobs:
4646
runs-on: ${{ matrix.os }}
4747
strategy:
4848
matrix:
49-
os: [macos-14, macos-12]
50-
python-version: ["3.9", "3.10", "3.11", "3.12"]
49+
os: ["macos-12", "macos-13", "macos-14", "macos-15"]
50+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
51+
52+
exclude:
53+
- os: "macos-12"
54+
python-version: "3.13"
55+
5156
steps:
5257
- name: Checkout
5358
uses: actions/checkout@v4

.github/workflows/osx-test-with-brew.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ jobs:
88
osx_wheel:
99
strategy:
1010
matrix:
11-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
12-
runs-on: [ "macos-14", "macos-12" ]
11+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
12+
runs-on: ["macos-12", "macos-13", "macos-14", "macos-15"]
13+
exclude:
14+
- os: "macos-12"
15+
python-version: "3.13"
16+
1317
runs-on: ${{ matrix.runs-on }}
1418
steps:
1519
- name: Checkout

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
needs: publish-to-testpypi
5454
strategy:
5555
matrix:
56-
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-14, macos-12, windows-2022, windows-2019]
57-
python-version: ["3.9", "3.10", "3.11", "3.12"]
56+
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
57+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v4

.github/workflows/publish-test-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
needs: publish-to-testpypi
5757
strategy:
5858
matrix:
59-
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-14, macos-12, windows-2022, windows-2019]
60-
python-version: ["3.9", "3.10", "3.11", "3.12"]
59+
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
60+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6161
steps:
6262
- name: Checkout
6363
uses: actions/checkout@v4

.github/workflows/windows-build-test-amd64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: [windows-2022, windows-2019]
37-
python-version: ["3.9", "3.10", "3.11", "3.12"]
37+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v4

.github/workflows/windows-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
runs-on: [ "windows-2022", "windows-2019" ]
12-
python-version: ["3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313
runs-on: ${{ matrix.runs-on }}
1414
steps:
1515
- name: Checkout

.pre-commit-config.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-ast
8+
- id: check-shebang-scripts-are-executable
89
- id: check-json
10+
- id: check-symlinks
911
- id: check-toml
1012
- id: check-xml
1113
- id: check-yaml
14+
- id: check-illegal-windows-names
1215
- id: check-merge-conflict
1316
- id: debug-statements
1417
- id: check-builtin-literals
1518
- id: check-case-conflict
1619
- id: check-docstring-first
1720
- id: detect-private-key
21+
- id: forbid-submodules
22+
- id: mixed-line-ending
1823

1924
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: 'v1.10.0'
25+
rev: 'v1.13.0'
2126
hooks:
2227
- id: mypy
2328
additional_dependencies: [types-setuptools, types-click]
2429
files: ^snap7
2530

2631
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: 'v0.4.2'
32+
rev: 'v0.7.2'
2833
hooks:
2934
- id: ruff
3035
- id: ruff-format

0 commit comments

Comments
 (0)