Skip to content

Commit 43013cf

Browse files
ci: add unit tests workflow
create github actions workflow to execute unit tests on python 3.10 to 3.13 add support for python 3.10 also
1 parent 68ff2d9 commit 43013cf

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.github/workflows/unit_test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Unit tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
8+
jobs:
9+
unit-tests:
10+
name: Run unit tests
11+
runs-on: ubuntu-22.04
12+
strategy:
13+
matrix:
14+
python-version:
15+
- "3.10"
16+
- "3.11"
17+
- "3.12"
18+
- "3.13"
19+
env:
20+
UV_PYTHON: ${{ matrix.python-version }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
version: "0.5.13"
28+
enable-cache: true
29+
cache-dependency-glob: |
30+
requirements**.txt
31+
uv.lock
32+
33+
- run: uv sync --all-extras --group dev
34+
- run: uv run pytest
35+

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"
7+
requires-python = ">=3.10"
78
dependencies = [
89
"alembic==1.13.1",
910
"blinker==1.7.0",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)