Create wrapper #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install and test | |
run: | | |
pip install --find-links=dist pytetwild[dev] | |
pytest -x | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: dist/*.tar.gz | |
name: pytetwild-sdist |