Skip to content

chore: install libpostal in user prefix during CI #21

chore: install libpostal in user prefix during CI

chore: install libpostal in user prefix during CI #21

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
packages: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Set up Python
run: uv python install 3.9
- name: Install dependencies
run: uv sync --group dev
- name: Run tests
run: uv run pytest tests/ -v --tb=short
- name: Build distribution packages
run: uv pip install build && uv run python -m build
- name: Publish GitHub release from tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME="${GITHUB_REF##*/}"
gh release create "$TAG_NAME" dist/*.whl dist/*.tar.gz --generate-notes --latest --verify-tag