Skip to content

Commit 838ea41

Browse files
committed
chore(dev): update test CI
1 parent 27d2f6d commit 838ea41

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Test
22

33
on:
44
push:
5-
branches: main
5+
branches: [main]
66
pull_request:
7-
branches: main
7+
branches: [main]
88
workflow_dispatch:
99

1010
jobs:
@@ -22,16 +22,17 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25+
- name: Setup uv
26+
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
27+
2528
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install .[dev]
29+
run: uv sync --dev
2930

3031
- name: Run tests and collect coverage
31-
run: |
32-
coverage run --source=tests,cpp_linter_hooks -m pytest -vv
33-
coverage report
34-
coverage xml
32+
run: |-
33+
uv run coverage run --source=tests,cpp_linter_hooks -m pytest -vv
34+
uv run coverage report
35+
uv run coverage xml
3536
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 #v5
3637
if: matrix.python-version == '3.13'
3738
with:

0 commit comments

Comments
 (0)