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+ # This workflow will install Python dependencies, run tests with a single version of Python
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python application
5+
6+ on :
7+ push :
8+ branches : [ "dev", "main" ]
9+ pull_request :
10+ branches : [ "dev", "main" ]
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v6
21+
22+ - name : Install python
23+ uses : actions/setup-python@v6
24+ with :
25+ python-version-file : " pyproject.toml"
26+
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v7
29+ with :
30+ enable-cache : true
31+
32+ - name : Install the project
33+ run : uv sync --group dev
34+
35+ - name : Test with pytest
36+ run : |
37+ uv run pytest
You can’t perform that action at this time.
0 commit comments