Skip to content

Commit

Permalink
✨ Enable caching for uv installation and add coverage installation st…
Browse files Browse the repository at this point in the history
…ep in CI workflow
  • Loading branch information
grelinfo committed Nov 26, 2024
1 parent 1c4ba6c commit 75a1c5f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Install dependencies
run: uv sync --all-extras
Expand All @@ -38,6 +40,8 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Install dependencies
run: uv sync --all-extras --python ${{ matrix.python }}
Expand Down Expand Up @@ -68,9 +72,16 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Install coverage
run: uv pip install coverage

- name: Combine coverage reports
run: uvx coverage combine .coverage.* --data-file cov.xml
run: |
uv run coverage combine .coverage.*
uv run coverage xml -o cov.xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4.0.1
Expand Down

0 comments on commit 75a1c5f

Please sign in to comment.