name: C/C++ CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: update
      run: sudo apt-get install gcc make libfftw3-dev liblapacke-dev libpng-dev libopenblas-dev gfortran
    - name: make all
      run: make all
    - name: make utest
      run: make utest
    - name: make test
      run: make test
    - name: make pythontest
      run: |
        sudo apt install python3 python3-numpy
        make pythontest
