@@ -32,13 +32,13 @@ jobs:
3232 name : [
3333 pytest-ubuntu-py311-gcc11-cxxnoomp,
3434 pytest-ubuntu-py312-gcc12-cxxomp,
35- pytest-ubuntu-py39 -gcc14-omp,
36- pytest-ubuntu-py310 -gcc10-noomp,
35+ pytest-ubuntu-py310 -gcc14-omp,
36+ pytest-ubuntu-py311 -gcc10-noomp,
3737 pytest-ubuntu-py312-gcc13-omp,
38- pytest-ubuntu-py39 -gcc9-omp,
38+ pytest-ubuntu-py310 -gcc9-omp,
3939 pytest-osx-py312-clang-omp,
40- pytest-docker-py39 -gcc-omp,
41- pytest-docker-py39 -icx-omp
40+ pytest-docker-py310 -gcc-omp,
41+ pytest-docker-py310 -icx-omp
4242 ]
4343 set : [base, adjoint]
4444 include :
@@ -56,15 +56,15 @@ jobs:
5656 language : " CXXopenmp"
5757 sympy : " 1.13"
5858
59- - name : pytest-ubuntu-py39 -gcc14-omp
60- python-version : ' 3.9 '
59+ - name : pytest-ubuntu-py310 -gcc14-omp
60+ python-version : ' 3.10 '
6161 os : ubuntu-24.04
6262 arch : " gcc-14"
6363 language : " openmp"
6464 sympy : " 1.12"
6565
66- - name : pytest-ubuntu-py310 -gcc10-noomp
67- python-version : ' 3.10 '
66+ - name : pytest-ubuntu-py311 -gcc10-noomp
67+ python-version : ' 3.11 '
6868 os : ubuntu-22.04
6969 arch : " gcc-10"
7070 language : " C"
7777 language : " openmp"
7878 sympy : " 1.13"
7979
80- - name : pytest-ubuntu-py39 -gcc9-omp
81- python-version : ' 3.9 '
80+ - name : pytest-ubuntu-py310 -gcc9-omp
81+ python-version : ' 3.10 '
8282 os : ubuntu-22.04
8383 arch : " custom"
8484 language : " openmp"
@@ -91,15 +91,15 @@ jobs:
9191 language : " openmp"
9292 sympy : " 1.12"
9393
94- - name : pytest-docker-py39 -gcc-omp
95- python-version : ' 3.9 '
94+ - name : pytest-docker-py310 -gcc-omp
95+ python-version : ' 3.10 '
9696 os : ubuntu-latest
9797 arch : " gcc"
9898 language : " openmp"
9999 sympy : " 1.13"
100100
101- - name : pytest-docker-py39 -icx-omp
102- python-version : ' 3.9 '
101+ - name : pytest-docker-py310 -icx-omp
102+ python-version : ' 3.10 '
103103 os : ubuntu-latest
104104 arch : " icx"
105105 language : " openmp"
@@ -166,6 +166,18 @@ jobs:
166166 python3 -m pip install ${{ env.PIPFLAGS }} -e .[tests,extras]
167167 python3 -m pip install ${{ env.PIPFLAGS }} sympy==${{matrix.sympy}}
168168
169+ - name : Check Docker image Python version
170+ if : " contains(matrix.name, 'docker')"
171+ run : |
172+ declared_pyver="${{ matrix.python-version }}"
173+ actual_pyver=$(${{ env.RUN_CMD }} python3 --version | grep "Python " | cut -d' ' -f2 | cut -d'.' -f1,2)
174+ echo "Declared Python version: $declared_pyver"
175+ echo "Actual Python version: $actual_pyver"
176+ if [ "$declared_pyver" != "$actual_pyver" ]; then
177+ echo "Python version mismatch: declared $declared_pyver, image has $actual_pyver"
178+ exit 1
179+ fi
180+
169181 - name : Check configuration
170182 run : |
171183 ${{ 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