-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.23 KB
/
bindings.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: Briefly Test Bindings
on:
release:
types: [published]
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test_bindings:
name: Test Python bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.9"
- name: Install package
run: |
pip install -U pip setuptools wheel
pip install .[tests]
- name: Test package
run: pytest test/python
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.9"
- name: Install dependencies
run: pip install -q build
- name: Build sdist
run: python -m build --sdist
- name: Install sdist
run: pip install --verbose dist/*.tar.gz
env:
CC: "gcc-10"
CXX: "g++-10"
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz