Skip to content

Document precommit usage (#8) #3

Document precommit usage (#8)

Document precommit usage (#8) #3

Workflow file for this run

name: Release
on:
push:
tags:
# Publish on any tag that looks like a semantic version e.g. 1.2.3
- '*.*.*'
jobs:
pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv build
- name: Smoke test (wheel)
run: uv run --isolated --no-project -p 3.9 --with dist/*.whl tests/smoke_test.py
- name: Smoke test (source distribution)
run: uv run --isolated --no-project -p 3.9 --with dist/*.tar.gz tests/smoke_test.py
- run: uv publish --trusted-publishing always