SaiBon99 commited on
Commit
9147d47
·
1 Parent(s): 369e64d

Add GitHub Actions workflow for testing with pytest

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +32 -0
.github/workflows/test.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.12'
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v5
23
+ with:
24
+ enable-cache: true
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ uv sync --group dev
29
+
30
+ - name: Run tests with pytest
31
+ run: |
32
+ uv run pytest tests/ -v --cov --cov-report=term-missing