Skip to content

Commit 66305a1

Browse files
committed
chore: add tests action, first try
1 parent 77f1aaa commit 66305a1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version:
17+
- "3.10"
18+
- "3.11"
19+
- "3.12"
20+
21+
steps:
22+
# Step 1: Checkout the repository
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
26+
- uses: actions/checkout@v4
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v5
30+
with:
31+
enable-cache: true
32+
cache-dependency-glob: "uv.lock"
33+
34+
- name: "Set up Python"
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
39+
# Step 4: Install dependencies using UV
40+
- name: Install dependencies
41+
run: uv install
42+
43+
# Step 5: Run tests with pytest
44+
- name: Run tests
45+
run: uv run pytest --cov=.

0 commit comments

Comments
 (0)