Skip to content

Commit

Permalink
Fix codecov maybe (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson authored Nov 8, 2024
1 parent acd2763 commit 82b5384
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 50 deletions.
55 changes: 6 additions & 49 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,6 @@
name: Coverage Check

on: [push, pull_request, workflow_dispatch]

jobs:
file-changes:
name: Detect File Changes
runs-on: 'ubuntu-latest'
outputs:
checkall: ${{ steps.changes.outputs.checkall }}
steps:
- name: Clone
uses: actions/checkout@v4

- name: Detect Changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: ".github/file-filter.yml"

run:
name: Coverage Test on CodeCov
if: needs.file-changes.outputs.checkall == 'true'
needs: file-changes
runs-on: "ubuntu-latest"
steps:
- name: Checkouts
uses: actions/checkout@v4

- 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: 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.6.0
with:
fail_ci_if_error: false
name: mfc-coverage
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

coverage:
status:
project:
default:
target: 1%
threshold: 1%
48 changes: 48 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Coverage Check

on: [push, pull_request, workflow_dispatch]

jobs:
file-changes:
name: Detect File Changes
runs-on: 'ubuntu-latest'
outputs:
checkall: ${{ steps.changes.outputs.checkall }}
steps:
- name: Clone
uses: actions/checkout@v4

- name: Detect Changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: ".github/file-filter.yml"

run:
name: Coverage Test on CodeCov
if: needs.file-changes.outputs.checkall == 'true'
needs: file-changes
runs-on: "ubuntu-latest"
steps:
- name: Checkouts
uses: actions/checkout@v4

- 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: 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
with:
fail_ci_if_error: false
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

2 changes: 1 addition & 1 deletion src/post_process/m_data_output.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ contains
logical :: dir_check
! Generic loop iterator
integer :: i
integer :: i, k ,l
! Allocating the generic storage for the flow variable(s) that are
! going to be written to the formatted database file(s). Note once
Expand Down

0 comments on commit 82b5384

Please sign in to comment.