-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.08 KB
/
build-and-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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