Skip to content

Commit 82b5384

Browse files
authored
Fix codecov maybe (#708)
1 parent acd2763 commit 82b5384

File tree

3 files changed

+55
-50
lines changed

3 files changed

+55
-50
lines changed

.github/workflows/codecov.yml

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,6 @@
1-
name: Coverage Check
2-
3-
on: [push, pull_request, workflow_dispatch]
4-
5-
jobs:
6-
file-changes:
7-
name: Detect File Changes
8-
runs-on: 'ubuntu-latest'
9-
outputs:
10-
checkall: ${{ steps.changes.outputs.checkall }}
11-
steps:
12-
- name: Clone
13-
uses: actions/checkout@v4
14-
15-
- name: Detect Changes
16-
uses: dorny/paths-filter@v3
17-
id: changes
18-
with:
19-
filters: ".github/file-filter.yml"
20-
21-
run:
22-
name: Coverage Test on CodeCov
23-
if: needs.file-changes.outputs.checkall == 'true'
24-
needs: file-changes
25-
runs-on: "ubuntu-latest"
26-
steps:
27-
- name: Checkouts
28-
uses: actions/checkout@v4
29-
30-
- name: Setup Ubuntu
31-
run: |
32-
sudo apt update -y
33-
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
34-
35-
- name: Build
36-
run: /bin/bash mfc.sh build -j $(nproc) --gcov
37-
38-
- name: Test
39-
run: /bin/bash mfc.sh test -a -j $(nproc)
40-
41-
- name: Upload coverage reports to Codecov
42-
uses: codecov/[email protected]
43-
with:
44-
fail_ci_if_error: false
45-
name: mfc-coverage
46-
verbose: true
47-
env:
48-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
49-
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 1%
6+
threshold: 1%

.github/workflows/coverage.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Coverage Check
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
file-changes:
7+
name: Detect File Changes
8+
runs-on: 'ubuntu-latest'
9+
outputs:
10+
checkall: ${{ steps.changes.outputs.checkall }}
11+
steps:
12+
- name: Clone
13+
uses: actions/checkout@v4
14+
15+
- name: Detect Changes
16+
uses: dorny/paths-filter@v3
17+
id: changes
18+
with:
19+
filters: ".github/file-filter.yml"
20+
21+
run:
22+
name: Coverage Test on CodeCov
23+
if: needs.file-changes.outputs.checkall == 'true'
24+
needs: file-changes
25+
runs-on: "ubuntu-latest"
26+
steps:
27+
- name: Checkouts
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Ubuntu
31+
run: |
32+
sudo apt update -y
33+
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
34+
35+
- name: Build
36+
run: /bin/bash mfc.sh build -j $(nproc) --gcov
37+
38+
- name: Test
39+
run: /bin/bash mfc.sh test -a -j $(nproc)
40+
41+
- name: Upload coverage reports to Codecov
42+
uses: codecov/codecov-action@v4
43+
with:
44+
fail_ci_if_error: false
45+
verbose: true
46+
env:
47+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
48+

src/post_process/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ contains
113113
logical :: dir_check
114114
115115
! Generic loop iterator
116-
integer :: i
116+
integer :: i, k ,l
117117
118118
! Allocating the generic storage for the flow variable(s) that are
119119
! going to be written to the formatted database file(s). Note once

0 commit comments

Comments
 (0)