File tree Expand file tree Collapse file tree 4 files changed +19
-28
lines changed
Expand file tree Collapse file tree 4 files changed +19
-28
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,8 @@ whitespace = 2
99enable-decl = true
1010enable-replacements = true
1111c-relations = true
12+
13+ # Hack to stop fprettify formatting CUDA-style chevrons from <<< to < < <
14+ # We just ignore all files calling kernels:
15+ # TODO delete me when relevant PR for fprettify is merged: https://github.com/pseewald/fprettify/pull/162
16+ exclude = [" exec_dist.f90" ]
Original file line number Diff line number Diff line change 11name : Run unit tests
22
33on :
4- push :
4+ pull_request :
5+ paths :
6+ - ' src/**'
7+ - ' tests/**'
58
69jobs :
710 unit-tests :
@@ -10,15 +13,15 @@ jobs:
1013 OMPI_VERSION : 4.1.5
1114 steps :
1215
13- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1417
1518 # We don't want to build openmpi each time this workflow is
1619 # run. Setup caching of OpenMPI after it is built and installed.
1720 # See "Caching dependencies to speed up workflows" on the GH
1821 # actions docs.
1922 - name : Cache OpenMPI
2023 id : cache-openmpi
21- uses : actions/cache@v2
24+ uses : actions/cache@v4
2225 with :
2326 path : openmpi-${{ env.OMPI_VERSION }}/installed
2427 key : openmpi-${{ env.OMPI_VERSION }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : check-policies
2- on : [push]
2+
3+ on : [pull_request]
4+
35jobs :
4- check-commit-messages :
5- runs-on : ubuntu-latest
6- steps :
7- - uses : actions/checkout@v3
8- with :
9- # Checkout with full history, not just latest revision.
10- fetch-depth : 0
11- - uses : actions/setup-python@v4
12- - run : |
13- bash .github/workflows/check_commit_messages.sh \
14- ${{ github.event.before }} ${{ github.event.after }}
156 check-formatting :
167 runs-on : ubuntu-latest
178 steps :
18- - uses : actions/setup-python@v4
19- - uses : actions/checkout@v3
9+ - uses : actions/checkout@v4
10+ - uses : actions/setup-python@v5
11+ with :
12+ python-version : ' 3.10'
2013 - run : pip install fprettify
2114 - run : fprettify --config .fprettify.ini --diff --recursive src
22- - run : test -z "$($FPRETTIFY_COMMAND)"
15+ - run : if [[ ! -z "$($FPRETTIFY_COMMAND)" ]]; then echo "::warning::Code formatting issues detected. See log for details."; fi
2316 env :
2417 FPRETTIFY_COMMAND : fprettify --config .fprettify.ini --diff --recursive src
You can’t perform that action at this time.
0 commit comments