Skip to content

Create wrapper

Create wrapper #17

name: Build and upload
on:
pull_request:
push:
tags:
- "*"
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: pipx run build --sdist
- name: Validate
run: |
pip install twine
twine check dist/*
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install \
libblas-dev \
libboost-filesystem-dev \
libboost-system-dev \
libboost-thread-dev \
libglu1-mesa-dev \
libsuitesparse-dev \
xorg-dev \
ccache
- name: Build wheel
run: |
pipx run build --wheel
- name: Validate wheel
run: |
pip install twine
twine check dist/*
- name: Install from wheel
run: pip install --find-links=dist/ pytetwild[dev]
- name: Test
run: pytest -vv
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: pytetwild-sdist