forked from MFlowCode/MFC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
4,538 additions
and
767 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This is used by the action https://github.com/dorny/paths-filter | ||
# Lists all files to be filtered for changes to run a CI for test.yml & coverage.yml | ||
|
||
fortran_src: &fortran_src | ||
- '**/*.f90' | ||
- '**/*.fpp' | ||
|
||
python_src: &python_src | ||
- '**/*.py' | ||
- 'toolchain/requirements.txt' | ||
|
||
cmakelist: &cmakelist | ||
- 'CMakeLists.txt' | ||
- 'toolchain/cmake/**' | ||
|
||
tests: &tests | ||
- 'tests/**' | ||
|
||
scripts: &scripts | ||
- 'mfc.sh' | ||
- 'mfc.bat' | ||
- 'toolchain/bootstrap/**' | ||
|
||
yml: &yml | ||
- '**/*.yml' | ||
|
||
checkall: &checkall | ||
- *fortran_src | ||
- *python_src | ||
- *cmakelist | ||
- *tests | ||
- *scripts | ||
- *yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: 'Benchmark' | ||
|
||
on: | ||
pull_request: | ||
on: pull_request | ||
|
||
jobs: | ||
self: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
|
||
workflow_dispatch: | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
docs: | ||
|
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
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
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
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
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
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
Oops, something went wrong.