Skip to content

Commit 4216b9a

Browse files
authored
Merge pull request #3440 from stfc/test_fparser
Update to fparser 0.2.4
2 parents bb44e5d + 2718e5d commit 4216b9a

12 files changed

Lines changed: 33 additions & 16 deletions

File tree

.github/workflows/compilation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
python -m pip install --upgrade pip
8888
# Uncomment the below to use the submodule version of fparser rather
8989
# than the latest release from pypi.
90-
pip install external/fparser
90+
# pip install external/fparser
9191
pip install .[test,psydata,doc,treesitter]
9292
- name: Unit tests with compilation - gfortran
9393
run: |

.github/workflows/extraction_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
python -m pip install --upgrade pip
7575
# Uncomment the below to use the submodule version of fparser rather
7676
# than the latest release from pypi.
77-
pip install external/fparser
77+
# pip install external/fparser
7878
pip install .[test]
7979
# Install BAF, and its version of Fab:
8080
# ------------------------------------

.github/workflows/lfric_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
python -m pip install --upgrade pip
8686
# Uncomment the below to use the submodule version of fparser rather
8787
# than the latest release from pypi.
88-
pip install external/fparser
88+
# pip install external/fparser
8989
pip install .[test]
9090
# Fetch the specified version of LFRic apps
9191
cd /archive/psyclone-tests/latest-run

.github/workflows/nemo_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
python -m pip install --upgrade pip
8787
# Uncomment the below to use the submodule version of fparser rather
8888
# than the latest release from pypi.
89-
pip install external/fparser
89+
# pip install external/fparser
9090
pip install .[test]
9191
# Compile nvidia profiling tools
9292
module load nvidia-hpcsdk/${NVFORTRAN_VERSION}

.github/workflows/nemo_v5_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
python -m pip install --upgrade pip
8484
# Uncomment the below to use the submodule version of fparser rather
8585
# than the latest release from pypi.
86-
pip install external/fparser
86+
# pip install external/fparser
8787
pip install .
8888
- name: Reset working directory
8989
run: |

.github/workflows/python-package.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,27 @@ jobs:
6363
GITHUB_PR_NUMBER: ${{ github.event.number }}
6464
steps:
6565
- uses: actions/checkout@v4
66+
with:
67+
submodules: recursive
68+
# This is required to get the commit history for merge commits for
69+
# the ci-skip check below.
70+
fetch-depth: '0'
71+
- name: Check for [skip ci] in commit message
72+
uses: mstachniuk/ci-skip@v1
73+
with:
74+
# This setting causes the tests to 'fail' if [skip ci] is specified
75+
fail-fast: true
76+
commit-filter: '[skip ci]'
6677
- uses: actions/setup-python@v5
6778
with:
6879
python-version: '3.14'
6980
- run: sudo apt-get install -y graphviz doxygen
7081
- run: python -m pip install --upgrade pip
71-
- run: pip install .[doc]
82+
- run: |
83+
# Uncomment the below to use the submodule version of fparser rather
84+
# than the latest release from pypi.
85+
# pip install external/fparser
86+
pip install .[doc]
7287
# Now we can check for warnings and broken links
7388
- run: cd doc; make html SPHINXOPTS="-W --keep-going"
7489
- run: cd doc; make linkcheck
@@ -102,10 +117,10 @@ jobs:
102117
python -m pip install --upgrade pip
103118
# Some of the examples use Jupyter.
104119
pip install jupyter
105-
# We need to install sphinx to get correct doc testing
106120
# Uncomment the below to use the submodule version of fparser rather
107121
# than the latest release from pypi.
108122
# pip install external/fparser
123+
# We need to install sphinx to get correct doc testing
109124
pip install .[doc]
110125
pip install .[test,treesitter]
111126
- name: Lint with flake8

changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
34) PR #3440. Update to use release 0.2.4 of fparser.
2+
13
33) PR #3467. Update CI compilers.
24

35
32) PR #3458 for #2721. Adds ArrayConstructor support into the PSyIR.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ classifiers = [
6666
]
6767
dependencies = [
6868
"pyparsing",
69-
"fparser==0.2.2",
69+
"fparser==0.2.4",
7070
"configparser",
7171
"sympy",
7272
"Jinja2",

src/psyclone/tests/psyad/domain/lfric/test_lfric_adjoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def test_generate_lfric_adjoint_no_routines_error(fortran_reader):
123123

124124
MULTI_ROUTINE_CODE = (
125125
f"module test_mod\n"
126-
f" implicit none\n"
127126
f" use kernel_mod\n"
128127
f" use argument_mod\n"
128+
f" implicit none\n"
129129
f"{METADATA}"
130130
f" public test_code\n"
131131
f" interface test_code\n"
@@ -187,9 +187,9 @@ def test_generate_lfric_adjoint_multi_routine_logging(fortran_reader, caplog):
187187

188188
SINGLE_ROUTINE_CODE = (
189189
"module test_mod\n"
190-
" implicit none\n"
191190
" use kernel_mod\n"
192191
" use argument_mod\n"
192+
" implicit none\n"
193193
" type, extends(kernel_type) :: test_type\n"
194194
" type(arg_type), dimension(2) :: meta_args = (/ &\n"
195195
" arg_type(gh_field, gh_real, gh_inc, w0), &\n"

0 commit comments

Comments
 (0)