Skip to content

Minor progress in FS integrator; added rms calculation #94

Minor progress in FS integrator; added rms calculation

Minor progress in FS integrator; added rms calculation #94

Workflow file for this run

name: Fidimag test
on: [push]
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: "Update apt and install cmake"
run: |
sudo apt-get -y update
sudo apt-get install -y cmake
sudo apt-get install -y libatlas-base-dev libatlas3-base
- name: "Install sundials and fftw"
working-directory: ./bin
run: |
bash install-fftw.sh
bash install-sundials.sh
- name: "Install pip and packages"
working-directory: ./
run: |
python3 -m ensurepip
python3 -m pip install --upgrade pip
python3 -m pip install --user scipy numpy pytest matplotlib
python3 -m pip install --user setuptools pyvtk cython psutil
- name: "Install FIDIMAG"
run: |
python3 setup.py build_ext --inplace
PWD=$(pwd)
export PYTHONPATH=$PWD:$PYTHONPATH
echo "PYTHONPATH=$PYTHONPATH"
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$PWD/local/lib" >> $GITHUB_ENV
- name: "Run test"
working-directory: ./tests
run: |
python3 -m pytest -v
# env:
# PYTHONPATH: $PWD