11name : CI
2-
3- permissions :
4- contents : read
5- packages : read
2+ permissions : read-all
63
74on :
85 workflow_dispatch :
96 pull_request :
107 push :
11- branches :
12- - main
8+ branches : [main]
139
1410concurrency :
1511 group : ${{ github.workflow }}-${{ github.ref }}
@@ -31,18 +27,12 @@ jobs:
3127 uses : astral-sh/setup-uv@v6
3228 with :
3329 enable-cache : true
34- cache-dependency-glob : " uv.lock"
35-
36- - name : " Set up Python"
37- uses : actions/setup-python@v5
38- with :
39- python-version-file : " .python-version"
4030
4131 - name : Install the project
42- run : uv sync --group test
32+ run : uv sync --locked -- group test
4333
4434 - name : Run lefthook hooks
45- run : uv run lefthook run
35+ run : uv run --frozen lefthook run pre-commit
4636
4737 checks :
4838 name : Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
@@ -66,18 +56,16 @@ jobs:
6656 uses : astral-sh/setup-uv@v6
6757 with :
6858 enable-cache : true
69- cache-dependency-glob : " uv.lock"
70-
71- - name : Set up Python ${{ matrix.python-version }}
72- run : uv python install ${{ matrix.python-version }}
59+ python-version : ${{ matrix.python-version }}
7360
7461 - name : Install the project
75- run : uv sync --group test
62+ run : uv sync --locked -- group test
7663
7764 - name : Test package
7865 run : >-
79- uv run pytest src docs tests -ra --cov --cov-report=xml
80- --cov-report=term --durations=20
66+ uv run --frozen pytest
67+ -cov --cov-report=xml --cov-report=term --durations=20
68+ src docs tests
8169
8270 - name : Upload coverage report
8371@@ -101,18 +89,15 @@ jobs:
10189 uses : astral-sh/setup-uv@v6
10290 with :
10391 enable-cache : true
104- cache-dependency-glob : " uv.lock"
105-
106- - name : Set up Python ${{ matrix.python-version }}
107- run : uv python install ${{ matrix.python-version }}
108-
92+ python-version : ${{ matrix.python-version }}
10993 - name : Install the project
110- run : uv sync --extra all --group test-all --resolution lowest-direct
94+ run : uv sync --locked --group test --resolution lowest-direct
11195
11296 - name : Test package
11397 run : >-
114- uv run pytest src docs tests -ra --cov --cov-report=xml
115- --cov-report=term --durations=20 --mpl
98+ uv run --frozen pytest
99+ --cov --cov-report=xml --cov-report=term --durations=20
100+ src docs tests
116101
117102 - name : Upload coverage report
118103
0 commit comments