Skip to content

Khwu/test ci (#10)

Khwu/test ci (#10) #9

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*"
jobs:
uv-test:
name: python
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.5.1"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Setup Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Build
run: uv build
# TODO replace this with a manylinux docker and run in CI with -it -v $(pwd):/io
- name: Audit manylinux
run: |
ldd --version
uv run auditwheel repair dist/*whl --plat "manylinux_2_39_x86_64" --exclude libscipy_openblas64_.so
uv run twine upload wheelhouse/*manylinux* -p ${{ secrets.PYPI_TOKEN }}