Skip to content

Commit eb0c819

Browse files
chore: Update coverage workflow to use astral-sh/uv-action for Python environment setup.
1 parent 786461d commit eb0c819

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@ name: Run tests and upload coverage
33
on: push
44

55
jobs:
6-
test:
7-
name: Run tests and collect coverage
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12-
with:
13-
fetch-depth: 2
6+
test:
7+
name: Run tests and collect coverage
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 2
1414

15-
- name: Set up Python
16-
uses: actions/setup-python@v6
17-
with:
18-
python-version: "3.13"
19-
cache: "uv"
15+
- name: Set up uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
python-version: "3.13"
2019

21-
- name: Install dependencies
22-
run: uv pip install -e .[dev]
20+
- name: Install dependencies
21+
run: uv pip install -e .[dev]
2322

24-
- name: Run tests with coverage
25-
run: uv run pytest --cov --cov-branch --cov-report=xml
23+
- name: Run tests with coverage
24+
run: uv run pytest --cov --cov-branch --cov-report=xml
2625

27-
- name: Upload coverage to Codecov
28-
uses: codecov/codecov-action@v5
29-
with:
30-
token: ${{ secrets.CODECOV_TOKEN }}
31-
slug: ${{ github.repository }}
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v5
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
slug: ${{ github.repository }}

0 commit comments

Comments
 (0)