forked from peter-ch/MultiNEAT
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (29 loc) · 874 Bytes
/
python.yml
File metadata and controls
33 lines (29 loc) · 874 Bytes
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
name: Python Bindings
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: dependencies
run: sudo apt install -y libboost-all-dev python3-pybind11 pybind11-dev
- name: pip install
run: pip install .
- name: test import
run: cd tests/python && ./test_import.py
- name: test raw genome
run: cd tests/python && ./test_raw_genome.py
- name: test xor
run: cd tests/python && ./test_xor.py
- name: configure tests
run: cmake -B build -DGENERATE_PYTHON_BINDINGS=ON -DENABLE_TESTING=ON
- name: build tests
run: cmake --build build
- name: run cmake tests
run: cmake --build build --target test