Compile coli with debug flags #130
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 colitest | |
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 | |
build | |
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: | | |
make coli; make steal | |
make clean_build | |
make debug | |
- 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 --cov=. --cov-report=xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |