Skip to content

Commit 80ed273

Browse files
committed
chore: install uv dependencies
1 parent b98766c commit 80ed273

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.11
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install uv package manager
23+
uses: astral-sh/setup-uv@v3
24+
25+
- name: Cache uv dependencies
26+
uses: actions/cache@v4
27+
with:
28+
path: .venv
29+
key: ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml') }}
30+
31+
- name: Install uv dependencies
32+
run: uv sync --dev
33+
34+
- name: Run unit tests
35+
run: uv run pytest tests/unit -v
36+
37+
- name: Run integration tests
38+
run: uv run pytest tests/integration -v

0 commit comments

Comments
 (0)