Skip to content

Commit cef216e

Browse files
committed
tests: test installed sympy version
1 parent 3c0887d commit cef216e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/pytest-core-nompi.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,19 @@ jobs:
166166
python3 -m pip install ${{ env.PIPFLAGS }} sympy==${{matrix.sympy}}
167167
python3 -m pip install ${{ env.PIPFLAGS }} -e .[tests,extras]
168168
169+
- name: Check sympy version
170+
if: "!contains(matrix.name, 'docker')"
171+
run: |
172+
# get the full version, e.g. "1.13.1"
173+
full="$(pip show sympy | awk '/^Version:/ {print $2}')"
174+
# strip off the last ".patch" so you get "1.13"
175+
majmin="${full%.*}"
176+
expected=${{ matrix.sympy }}
177+
if [[ "$majmin" != "$expected" ]]; then
178+
echo "::error::Sympy version mismatch: expected ${ { matrix.sympy } }, got $full"
179+
exit 1
180+
fi
181+
169182
- name: Check configuration
170183
run: |
171184
${{ env.RUN_CMD }} python3 -c "from devito import configuration; print(''.join(['%s: %s \n' % (k, v) for (k, v) in configuration.items()]))"

0 commit comments

Comments
 (0)