Skip to content

feat: add category-based preset filtering and UI how-to docs #15

feat: add category-based preset filtering and UI how-to docs

feat: add category-based preset filtering and UI how-to docs #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
UV_PYTHON: "3.12"
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.12"
enable-cache: true
- name: Install the project
run: uv sync --all-extras --dev
# Install and run pre-commit
- run: |
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg
uv run pre-commit run --all-files
test:
needs: [pre-commit]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: uv pip install -e ".[dev]" --system
- name: Test
run: uv run pytest tests/ -v
release:
needs: [pre-commit, test]
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
contents: write # IMPORTANT: mandatory for making GitHub Releases
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v10.5.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
- uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'