-
Notifications
You must be signed in to change notification settings - Fork 72
101 lines (98 loc) · 2.71 KB
/
bindings-tests.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Python
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- docs/**
- README.md
- README_PYPI.md
- cli/**
- examples/**
- images/**
- .gitignore
- COPYING
- build.*
- pull_datasets.sh
push:
branches:
- main
paths-ignore:
- docs/**
- README.md
- README_PYPI.md
- cli/**
- examples/**
- images/**
- .gitignore
- COPYING
- build.*
- pull_datasets.sh
workflow_dispatch:
jobs:
test-python-bindings:
strategy:
matrix:
include:
- os:
long-name: ubuntu-latest
short-name: ubuntu
compiler: gcc
env:
CC: gcc-10
CXX: g++-10
- os:
long-name: ubuntu-latest
short-name: ubuntu
complier: clang
env:
CC: clang-17
CXX: clang++-17
CXXFLAGS: "-stdlib=libc++"
LDFLAGS: "-lc++abi"
- os:
long-name: macos-14
short-name: macos
compiler: llvm-clang
env:
CC: $(brew --prefix llvm@17)/bin/clang
CXX: $(brew --prefix llvm@17)/bin/clang++
BOOST_ROOT: /usr/local
- os:
long-name: macos-14
short-name: macos
compiler: apple-clang
# Apple Clang is default compiler. No env needed
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/composite-actions/install-dependencies
with:
os: ${{ matrix.os.short-name }}
toolset: ${{ matrix.compiler }}
download-pybind: true
download-googletest: false
- name: Build pip package
shell: bash
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install .
- name: Test pip package
shell: bash
run: |
source venv/bin/activate
cp test_input_data/WDC_satellites.csv src/python_bindings/
cp test_input_data/TestLong.csv src/python_bindings/
cp test_input_data/TestWide.csv src/python_bindings/
cp test_input_data/transactional_data/rules-kaggle-rows.csv src/python_bindings/
cd src/python_bindings
python test_bindings.py
- name: Test data stats
working-directory: ${{github.workspace}}
shell: bash
run: |
source venv/bin/activate
cp test_input_data/TestDataStats.csv src/python_bindings
cd src/python_bindings
python test_pybind_data_stats.py