Skip to content

[py] querychat 0.3.0 #8

[py] querychat 0.3.0

[py] querychat 0.3.0 #8

Workflow file for this run

name: Python - Release
on:
release:
types: [published]
env:
PYTHON_VERSION: 3.12
jobs:
pypi-release:
name: Build and release Python package
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/py/v')
environment:
name: pypi
url: https://pypi.org/project/querychat/
permissions: # for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: πŸš€ Install uv
uses: astral-sh/setup-uv@v3
- 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 --all-groups
- name: πŸ§ͺ Check tests
run: make py-check-tests
- name: πŸ“ Check types
run: make py-check-types
- name: πŸ“ Check formatting
run: make py-check-format
- name: 🧳 Build package
run: make py-build
# TODO: https://pypi.org/manage/project/querychat/settings/publishing/
- name: 🚒 Publish release on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./dist