Skip to content

update gh actions

update gh actions #28

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine

Check failure on line 29 in .github/workflows/pythonpublish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pythonpublish.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
- name: Make sure unit tests succeed
run: |
git config --global user.name "Github Action"
git config --global user.email "[email protected]"
uv run pytest
- name: Build
run: |
uv build
# See https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Deploy mkdocs site
run: |
uv run mkdocs gh-deploy --force