Skip to content

Commit

Permalink
Use a venv also for the clang14 run
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jun 25, 2024
1 parent 2e22b52 commit 5b83753
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,16 @@ jobs:
- name: Install
run: |
sudo apt update
# Remove the default Python and link python3.11 in its stead to avoid
# compatibility issues between the two versions.
sudo apt -y autoremove python3
sudo apt install clang-14 cmake gfortran libhdf5-dev python3.11 python3.11-dev wget
python="$(which python3.11)"
sudo ln -s "$python" "${python%.11}"
sudo ln -s "$python" "${python%3.11}"
wget https://bootstrap.pypa.io/get-pip.py
python3.11 get-pip.py
python3.11 -m pip install numpy pandas
sudo apt install clang-14 cmake gfortran libhdf5-dev python3.11 python3.11-dev wget python3.11-venv
python3.11 -m venv /opt/python_venv
. /opt/python_venv/bin/activate
python -m pip install numpy pandas
sudo .github/workflows/dependencies/install_spack
- name: Build
env: {CC: clang-14, CXX: clang++-14, CXXFLAGS: -Werror}
run: |
system_python="$(which python3.11)"
. /opt/python_venv/bin/activate
eval $(spack env activate --sh .github/ci/spack-envs/clang14_py311_nompi_h5_ad2/)
spack install
Expand All @@ -153,7 +149,7 @@ jobs:
-DopenPMD_USE_ADIOS2=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DPython_EXECUTABLE=$(which python3.11)
-DPython_EXECUTABLE="$system_python"
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
Expand Down

0 comments on commit 5b83753

Please sign in to comment.