Skip to content

Update UI

Update UI #3

Workflow file for this run

name: CI/CD
on:
pull_request:
push:
branches: ["main"]
tags: ["v*"]
permissions:
contents: read
jobs:
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install (editable + dev deps)
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run tests
run: pytest -q
build:
name: Build distributions
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build
run: python -m build
- name: Twine check
run: python -m twine check dist/*
- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*
publish-pypi:
name: Publish to PyPI (tags v*)
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
permissions:
id-token: write
contents: read
steps:
- name: Download dist artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist
# Trusted Publishing (recommended; no secrets)
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1