-
Notifications
You must be signed in to change notification settings - Fork 30
46 lines (39 loc) · 1.15 KB
/
pip_package.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
name: pip package
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-python:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: install boost on macos
if: ${{ matrix.os == 'macos-latest'}}
run: |
brew install boost
- name: install boost for ubuntu
if: ${{ matrix.os == 'ubuntu-latest'}}
run: |
sudo apt-get update
sudo apt-get install libboost-all-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: upgrade python tools
run: python -m pip install --upgrade pip setuptools wheel
- name: install dependencies
run: pip install -r src/serialbox-python/requirements.txt
- name: build
run: pip install src/serialbox-python
- name: run tests
run: pytest -v test/serialbox-python/serialbox >> $GITHUB_STEP_SUMMARY