File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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=.
You can’t perform that action at this time.
0 commit comments