File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ run-test :
9+ name : Run Tests
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Set up uv
15+ uses : astral-sh/setup-uv@v5
16+ with :
17+ python-version : " 3.12.12"
18+ enable-cache : true
19+
20+ - name : Install Dependencies
21+ run : |
22+ uv venv --allow-existing
23+ uv pip install -r requirements.txt -r requirements-dev.txt
24+
25+ - name : Run Tests
26+ run : |
27+ source .venv/bin/activate
28+ pytest --cov-branch --cov --cov-report=xml
29+
30+ - name : Upload Coverage to Codecov
31+ uses : codecov/codecov-action@v5
32+ with :
33+ files : coverage.xml
34+ env :
35+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
36+
37+ check-linting :
38+ name : Check Linting
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v4
42+
43+ - name : Set up uv
44+ uses : astral-sh/setup-uv@v5
45+ with :
46+ python-version : " 3.12.12"
47+ enable-cache : true
48+
49+ - name : Install Dependencies
50+ run : |
51+ uv venv --allow-existing
52+ uv pip install -r requirements.txt -r requirements-dev.txt
53+
54+ - name : Run Ruff
55+ run : |
56+ source .venv/bin/activate
57+ ruff check sample_package tests
You can’t perform that action at this time.
0 commit comments