Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdummer authored May 3, 2024
1 parent 61029eb commit 5fde3b1
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Run tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
use-mamba: true
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: anaconda-client-env

- name: Install conda packages
shell: bash -l {0}
run: |
mamba install --file requirements.txt
- name: Install Eigen
shell: bash -l {0}
run: |
git clone --branch 3.4.0 https://gitlab.com/libeigen/eigen.git
cd eigen
mkdir build
cd build
cmake -DBUILD_TESTING=OFF -DINCLUDE_INSTALL_DIR=$CONDA_PREFIX/include -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..
make install
cd ../..
- name: Install Autodiff
shell: bash -l {0}
run: |
git clone --branch v1.1.0 https://github.com/autodiff/autodiff.git
cd autodiff
mkdir build
cd build
cmake -DAUTODIFF_BUILD_TESTS=OFF \
-DAUTODIFF_BUILD_PYTHON=OFF \
-DAUTODIFF_BUILD_EXAMPLES=OFF \
-DAUTODIFF_BUILD_DOCS=OFF \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
..
make install
cd ../..
- name: Install Fastor
shell: bash -l {0}
run: |
git clone https://github.com/romeric/Fastor.git
cd Fastor
cmake -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX .
make install
cd ..
- name: Install Marmot
shell: bash -l {0}
run: |
git clone --recurse-submodules https://github.com/MAteRialMOdelingToolbox/Marmot/
cd Marmot
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..
make install
cd ../..
- name: Build EdelweissFE
shell: bash -l {0}
run: |
git clone https://github.com/EdelweissFE/EdelweissFE.git
pip install .
cd ..
- name: Run tests
shell: bash -l {0}
run: |
python run_tests_edelweiss.py

0 comments on commit 5fde3b1

Please sign in to comment.