Skip to content

Merge pull request #4 from Kinsmir/context-fallback #13

Merge pull request #4 from Kinsmir/context-fallback

Merge pull request #4 from Kinsmir/context-fallback #13

Workflow file for this run

name: Publish Python Package
on:
push:
branches: ["main"]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/lmnr/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest
- name: Build package
run: uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1