Skip to content

Commit

Permalink
Update GitHub workflows for h3daemon release & tests
Browse files Browse the repository at this point in the history
- Added `Install uv` step in both workflows
- Updated build command to use `uv sync` and `uv build`
- Modified test command to utilize `uv run pytest`
  • Loading branch information
horta committed Jan 17, 2025
1 parent 2ae9f46 commit ff69458
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release-h3daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,27 @@ defaults:
jobs:
release:
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/h3daemon

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Build
run: pipx run build
run: |
uv sync --all-extras --dev
uv build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: h3daemon/dist
skip-existing: true
verbose: true
7 changes: 5 additions & 2 deletions .github/workflows/test-h3daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Run tests
run: |
pipx run poetry install
pipx run poetry run pytest
uv sync --all-extras --dev
uv run pytest

0 comments on commit ff69458

Please sign in to comment.