Skip to content

Commit

Permalink
Adding ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Jan 12, 2024
1 parent 0aa2b50 commit cb14058
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Apt dependencies
shell: bash
run: |
sudo apt -y update
sudo apt install -y libgcc-9-dev \
libstdc++-9-dev \
libembree-dev \
python3-dev \
libhdf5-dev \
libeigen3-dev \
cmake
- name: Python dependencies
shell: bash
run: |
pip install numpy \
scipy \
matplotlib \
h5py \
pytest \
pytest-cov \
codecov
- name: Build MOAB
shell: bash
run: |
cd ~
git clone https://bitbucket.org/fathomteam/moab.git
cd moab
git checkout 5.3.1
mkdir build
cd build
cmake -DENABLE_HDF5=ON -DENABLE_BLASLAPACK=OFF -DENABLE_PYMOAB=ON -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install
- name: Install
shell: bash
run: |
pip install .
- name: Test
shell: bash
run: |
pytest -v .

0 comments on commit cb14058

Please sign in to comment.