Skip to content

coverage only runs when meanful files are changed (duplicates code fr… #13

coverage only runs when meanful files are changed (duplicates code fr…

coverage only runs when meanful files are changed (duplicates code fr… #13

Workflow file for this run

name: Coverage Check
on:
pull_request:
paths:
- '**.f90'
- '**.fpp'
- '**.py'
- '**.yml'
- 'mfc.sh'
- 'golden.txt'
- 'golden-metadata.txt'
- 'CMakeLists.txt'
- 'requirements.txt'
jobs:
run:
name: Coverage Test on CodeCov
runs-on: "ubuntu-latest"
steps:
- name: Setup Ubuntu
run: |
sudo apt update -y
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
- name: Checkouts
uses: actions/checkout@v4
- name: Build
run: /bin/bash mfc.sh build -j $(nproc) --gcov
- name: Test
run: /bin/bash mfc.sh test -a -j $(nproc)
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}