This repository has been archived by the owner on May 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (49 loc) · 1.61 KB
/
run-test.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
54
55
56
57
58
name: Run Test
on: [push]
jobs:
run-test:
name: Test on Python ${{ matrix.python-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: git pull submodules
run: git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Ninja for Linux
if: matrix.os == 'ubuntu-latest'
run: |
curl -LO https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip
sudo unzip ninja-linux.zip -d /usr/local/bin/
- name: Install Ninja for macOS
if: matrix.os == 'macOS-latest'
run: |
curl -LO https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-mac.zip
sudo unzip ninja-mac.zip -d /usr/local/bin/
- name: Set up CMake
run: |
mkdir build
cd build
cmake .. -DBUILD_TEST=ON -DCMAKE_BUILD_TYPE=Debug -GNinja
- name: Build C++ and Run C++ Tests
run: |
cd build
ninja
./run-test
./run-integration
- name: Install Python Dependencies and Package
run: |
cd extensions/python
python -m pip install --upgrade pip
pip install pytest
python setup.py develop
- name: Run Python Tests
run: |
cd extensions/python
pytest -v