Skip to content

Add GP support

Add GP support #41

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv pip install --system -e ".[all]"
uv pip install --system mpax pytest
- name: Run tests
run: pytest
- name: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
uv pip install --system build
python -m build
- name: publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
permissions:
id-token: write