Skip to content

chatlas 0.2.0

chatlas 0.2.0 #5

Workflow file for this run

name: Python - Release
on:
release:
types: [published]
env:
UV_VERSION: "0.4.x"
PYTHON_VERSION: 3.13
jobs:
pypi-release:
name: Build and release Python package
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: pypi
url: https://pypi.org/project/chatlas/
permissions: # for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: πŸš€ Install uv
uses: astral-sh/setup-uv@v3
with:
version: ${{ env.UV_VERSION }}
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }}
run: uv python install ${{ env.PYTHON_VERSION }}
- name: πŸ“¦ Install the project
run: uv sync --python ${{ env.PYTHON_VERSION }} --all-extras
# Tests require API keys, and can be flaky at times due to quota limits,
# we skip them for release
#- name: πŸ§ͺ Check tests
# run: make check-tests
- name: πŸ“ Check types
run: make check-types
- name: πŸ“ Check formatting
run: make check-format
- name: 🧳 Build package
run: uv build
- name: 🚒 Publish release on PyPI
uses: pypa/gh-action-pypi-publish@release/v1