compile and run coli integation test #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compile and run coli integation test | |
on: | |
push: | |
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, version: '2023.2'} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
src | |
build | |
powr | |
test | |
- name: get fortran compiler | |
uses: ssciwr/[email protected] | |
id: setup-fortran | |
with: | |
compiler: ${{ matrix.toolchain.compiler }} | |
version: ${{ matrix.toolchain.version }} | |
install_mkl: "true" | |
- name: get compiler version | |
run: ${{ env.FC }} --version | |
env: | |
FC: ${{ steps.setup-fortran.outputs.fc }} | |
- name: compile powr | |
run: | | |
make | |
# make clean_build | |
# make debug_all | |
# - name: get the test models | |
# run: | | |
# wget -O testmodels.tgz https://heibox.uni-heidelberg.de/f/a62c7ae5559d43a0a8b2/?dl=1 | |
# tar -xzf testmodels.tgz | |
- 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: run integration tests | |
run: | | |
pwd | |
ls | |
python -m pytest -svv test/test_wrstart.py |