Skip to content

Improve make 1

Improve make 1 #82

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
compile:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.9]
os: [ubuntu-latest]
# os: [ubuntu-latest, macos-latest]
toolchain:
- {compiler: intel-classic, version: '2021.10'}
# - {compiler: intel-classic, version: '2021.1'}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: |
src
powr
test
- name: get fortran compiler
uses: iulusoy/setup-fortran@v0
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: get compiler version
run: ${{ env.FC }} --version
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: compile powr
run: |
cd src
make
- name: create folder structure
run: |
mkdir powr/exe_dev.dir
cp src/*.opt powr/exe_dev.dir/.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: set up the job and run base tests
run: |
python -m pytest -svv test/test_colitest.py