Skip to content

Commit 8a85575

Browse files
authored
Add CI job for unit test (#15)
1 parent 84cbc72 commit 8a85575

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/ci_checks.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: astral-sh/setup-uv@v1
2020
- name: Install dependencies
2121
run: |
22-
uv sync
22+
uv sync --extra dev
2323
- name: Ensure Proto Files changes are committed
2424
run: |
2525
uv run python scripts/generate_proto.py
@@ -34,3 +34,23 @@ jobs:
3434
- name: Run Ruff linter
3535
run: |
3636
uv tool run ruff check
37+
38+
test:
39+
name: Unit Tests
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
submodules: true
45+
- name: Set up Python
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: "3.13"
49+
- name: Set up uv
50+
uses: astral-sh/setup-uv@v1
51+
- name: Install dependencies
52+
run: |
53+
uv sync --extra dev
54+
- name: Run unit tests
55+
run: |
56+
uv run python -m pytest tests/ -v

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ markers = [
133133
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
134134
"integration: marks tests as integration tests",
135135
"unit: marks tests as unit tests",
136+
"asyncio: marks tests as async tests",
136137
]
137138

138139
[tool.coverage.run]

0 commit comments

Comments
 (0)