Skip to content

Enable UP rule in ruff (#416) #348

Enable UP rule in ruff (#416)

Enable UP rule in ruff (#416) #348

Workflow file for this run

name: release
on:
push:
branches: [master]
jobs:
test:
uses: ./.github/workflows/test_and_build.yml
secrets: inherit
build:
runs-on: ubuntu-latest
environment: CD
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv sync
python3 -m pip install pre-commit==3.6.2
- name: Build package
run: uv build
- name: Build docs
run: cd docs && make html SPHINXBUILD="uv run sphinx-build"
- name: Release to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish || echo 'Version exists'