Skip to content

Commit af2d60b

Browse files
committed
ci: test with bcrypt v4 and v5
1 parent 2555c5d commit af2d60b

File tree

4 files changed

+438
-65
lines changed

4 files changed

+438
-65
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
9+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1010

1111
steps:
1212
- uses: actions/checkout@v4

.github/workflows/tox.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: ["3.13"]
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
enable-cache: true
22+
23+
- name: Install dependencies
24+
run: uv sync --all-extras --all-groups
25+
26+
- run: |
27+
uv run tox

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ totp = [
7070
[dependency-groups]
7171
dev = [
7272
"ipython>=8.18.1",
73+
"tox>=4.30.3",
74+
"tox-uv>=1.28.1",
7375
]
7476
lint = [
7577
"deptry>=0.23.0",
@@ -213,3 +215,20 @@ python_version = "3.9"
213215

214216
follow_imports = "normal"
215217
ignore_missing_imports = false
218+
219+
220+
[tool.tox]
221+
env_list = ["bcryptv4", "bcryptv5"]
222+
223+
[tool.tox.pytest]
224+
runner = "uv-venv-lock-runner"
225+
extras = ["argon2", "bcrypt", "totp"]
226+
commands = [["pytest", "-n", "auto", "--cov"]]
227+
228+
[tool.tox.env.bcryptv4]
229+
base = ["pytest"]
230+
commands_pre = [["uv", "pip", "install", "bcrypt<5.0.0"]]
231+
232+
[tool.tox.env.bcryptv5]
233+
base = ["pytest"]
234+
commands_pre = [["uv", "pip", "install", "bcrypt>=5.0.0"]]

0 commit comments

Comments
 (0)