Skip to content

Commit 752bd03

Browse files
committed
chore: add tests with python 3.14
1 parent 8ded366 commit 752bd03

5 files changed

Lines changed: 50 additions & 176 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
permissions:
1212
id-token: write
1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1515
with:
1616
persist-credentials: false
17-
- uses: astral-sh/setup-uv@v7
17+
- uses: astral-sh/setup-uv@v10
1818
with:
1919
enable-cache: false
2020
python-version: "3.12"

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,32 @@ permissions:
1212

1313
jobs:
1414
lint:
15-
strategy:
16-
matrix:
17-
cmd: [ "black", "ruff", "mypy" ]
1815
runs-on: ubuntu-latest
1916
steps:
20-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2118
with:
2219
persist-credentials: false
2320
- id: setup-uv
24-
uses: astral-sh/setup-uv@v7
21+
uses: astral-sh/setup-uv@v10
2522
with:
2623
version: "latest"
2724
python-version: "3.13"
2825
- name: Install deps
2926
run: uv sync --all-extras
3027
- name: Run lint check
31-
run: uv run pre-commit run -a ${{ matrix.cmd }}
28+
run: uv run prek run -a
3229
pytest:
3330
strategy:
3431
matrix:
35-
py_version: [ "3.10", "3.11", "3.12", "3.13" ]
32+
py_version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
3633
runs-on: "ubuntu-latest"
3734
steps:
38-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3936
- name: Set up Redis instance and Redis cluster
4037
run: docker compose up -d --wait
4138
- name: Set up uv and enable cache
4239
id: setup-uv
43-
uses: astral-sh/setup-uv@v7
40+
uses: astral-sh/setup-uv@v10
4441
with:
4542
enable-cache: true
4643
cache-suffix: "${{ matrix.py_version }}"
@@ -53,7 +50,7 @@ jobs:
5350
- name: Generate coverage report
5451
run: uv run coverage xml
5552
- name: Upload coverage reports to Codecov with GitHub Action
56-
uses: codecov/codecov-action@v5
53+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
5754
if: matrix.py_version == '3.10'
5855
with:
5956
token: ${{ secrets.CODECOV_TOKEN }}

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
31
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v6.0.0
2+
- repo: builtin
63
hooks:
7-
- id: check-ast
84
- id: trailing-whitespace
95
- id: check-toml
106
- id: end-of-file-fixer
117

12-
- repo: https://github.com/asottile/add-trailing-comma
13-
rev: v4.0.0
14-
hooks:
15-
- id: add-trailing-comma
16-
178
- repo: local
189
hooks:
1910
- id: black

‎pyproject.toml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "taskiq-redis"
33
version = "0.0.0"
44
description = "Redis integration for taskiq"
55
readme = "README.md"
6-
requires-python = ">=3.10"
6+
requires-python = ">=3.10,<4"
77
license = "MIT"
88
license-files = ["LICENSE"]
99
authors = [{ name = "Taskiq team", email = "taskiq@no-reply.com" }]
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
2626
"Programming Language :: Python :: 3.13",
27+
"Programming Language :: Python :: 3.14",
2728
]
2829
dependencies = [
2930
"redis>=8.0.0,<9",
@@ -36,14 +37,15 @@ repository = "https://github.com/taskiq-python/taskiq-redis"
3637

3738
[dependency-groups]
3839
dev = [
39-
"pre-commit>=4.5.0",
40+
"prek>=0.5.4",
4041
{ include-group = "lint" },
4142
{ include-group = "test" },
4243
]
4344
lint = [
4445
"black>=25.11.0",
4546
"mypy>=2.3.1",
4647
"ruff>=0.16.9",
48+
"zizmor>=1.30.1",
4749
]
4850
test = [
4951
"fakeredis>=2.32.1",

0 commit comments

Comments
 (0)