Skip to content

Commit

Permalink
fix: migrate coverage action to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Oct 4, 2024
1 parent a9cdda9 commit 8e6324d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:

jobs:
build:
name: Test Build
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- uses: actions/setup-python@v5
with:
Expand All @@ -30,10 +32,13 @@ jobs:
gobject-introspection \
libgtk-3-dev
- name: Install the project
run: uv sync --all-extras --dev

- name: Run pytest
run: hatch run test
run: uv run pytest

- name: Coveralls
run: hatch run coveralls
run: uv run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

0 comments on commit 8e6324d

Please sign in to comment.