-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.25 KB
/
python-tests.yml
File metadata and controls
50 lines (42 loc) · 1.25 KB
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
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # or whichever version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install numpy
pip install scipy
pip install pybind11
pip install scikit-learn
pip install rdata
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
tar -xzf eigen-3.4.0.tar.gz
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Build the C++ extension
run: |
cd src
python setup.py build_ext --inplace
- name: Run tests
run: |
pytest test_check_data.py
pytest test_HandleNumericAndNan.py
pytest test_GetBinnedCurve.py
pytest test_GetBinnedDataset.py
pytest test_Minb.py
pytest test_ConvertSupport.py
pytest test_MapX1D.py
pytest test_gcvlwls1d1.py
pytest test_CVLwls1D.py