File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push :
54 pull_request :
65 workflow_dispatch :
76
87jobs :
98 test :
109 runs-on : ubuntu-latest
1110 steps :
12- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
11+ - name : Clone repo
12+ uses : actions/checkout@v4
1313
14- - name : Set up Python
15- uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0
16- with :
17- python-version : ' 3.10'
18-
19- - name : Install dependencies
20- run : pip install uv && uv pip install -e . --system
14+ - name : Set up uv
15+ uses : astral-sh/setup-uv@v6
2116
2217 - name : Run tests
23- run : pytest --cov
18+ run : uv run pytest --cov
Original file line number Diff line number Diff line change 1+ name : lint and style checks
2+
3+ on :
4+ pull_request :
5+ workflow_dispatch :
6+
7+ jobs :
8+ lint :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Clone repo
12+ uses : actions/checkout@v4
13+
14+ - name : Set up uv
15+ uses : astral-sh/setup-uv@v6
16+
17+ - name : Run pre-commit
18+ run : uvx pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments