-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (35 loc) · 1.27 KB
/
python-app.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: FragIt Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Python Dependencies
run: pip install -U pytest numpy
- name: OpenBabel Dependencies
run: sudo apt-get install -y ninja-build swig libeigen3-dev libboost-all-dev
- name: OpenBabel Configure
run: |
git clone https://github.com/openbabel/openbabel.git openbabel_source
mkdir openbabel_build
cd openbabel_build
cmake -DCMAKE_CXX_FLAGS="-march=native -mno-avx" -DRUN_SWIG=ON -DPYTHON_BINDINGS=ON -DPYTHON_INSTDIR=$Python_ROOT_DIR/lib/python${{ matrix.python-version }}/site-packages ../openbabel_source
- name: OpenBabel Build
run: |
cd openbabel_build
make
- name: OpenBabel Install
run: |
cd openbabel_build
sudo make install
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -m pytest tests/*.py