File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ jobs:
163
163
- name : Test with pytest
164
164
run : |
165
165
${{ env.RUN_CMD }} ${{ matrix.arch }} --version
166
+ ${{ env.RUN_CMD }} python3 --version
166
167
${{ env.RUN_CMD }} pytest -k "${{ matrix.test-set }}" -m "not parallel" --cov --cov-config=.coveragerc --cov-report=xml ${{ env.TESTS }}
167
168
168
169
- name : Upload coverage to Codecov
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ ENV PATH $I_MPI_ROOT/libfabric/bin:$I_MPI_ROOT/bin:$I_ICC_ROOT/linux/bin/intel64
72
72
ENV LD_LIBRARY_PATH $I_MPI_ROOT/libfabric/lib:$I_MPI_ROOT/lib/release:$I_MPI_ROOT/lib:$I_ICC_ROOT/linux/lib:$I_ICC_ROOT/linux/lib/x64:$I_ICC_ROOT/linux/compiler/lib/intel64_lin:${LD_LIBRARY_PATH}
73
73
ENV FI_PROVIDER_PATH $I_MPI_ROOT/libfabric/lib/prov:/usr/lib64/libfabric:${LD_LIBRARY_PATH}
74
74
75
+ # Install intelpython
76
+ RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/03aae3a8-623a-47cf-9655-5dd8fcf86430/l_pythoni39_oneapi_p_2023.2.0.49422.sh && \
77
+ chmod +x l_pythoni39_oneapi_p_2023.2.0.49422.sh && ./l_pythoni39_oneapi_p_2023.2.0.49422.sh -r yes -a -s --eula accept
78
+ ENV PATH /opt/intel/oneapi/intelpython/python3.9/bin:${PATH}
79
+
75
80
##############################################################
76
81
# ICC image
77
82
# This is a legacy setup that is not built anymore but kept for reference
Original file line number Diff line number Diff line change 1
- import platform
2
- import os
3
-
4
1
import numpy as np
5
2
6
3
@@ -15,15 +12,3 @@ def test_numpy_dot():
15
12
16
13
v = np .random .rand (1000 ).astype (np .float32 )
17
14
assert np .isclose (np .dot (v , v ), (v * v ).sum ())
18
-
19
-
20
- def test_python_version ():
21
- """
22
- Test that the CI runs with the expected python version
23
- """
24
- # expected version
25
- e_ver = os .environ .get ("PYTHON_VERSION" ) or os .environ .get ("TRAVIS_PYTHON_VERSION" )
26
- # Installed version
27
- i_ver = platform .python_version ()
28
-
29
- assert e_ver is None or i_ver .startswith (e_ver )
You can’t perform that action at this time.
0 commit comments