Skip to content

Commit

Permalink
CI: install python and numpy before configuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Sep 11, 2024
1 parent 93331b5 commit edb53db
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y xorg-dev libglu1-mesa-dev libgtk-3-dev
- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: πŸ“š Install python packages
run: pip install --user numpy

Expand Down Expand Up @@ -291,6 +295,13 @@ jobs:
echo "/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/compilers/bin" >> $GITHUB_PATH
echo "/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/math_libs/lib64" >> $GITHUB_PATH
- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: πŸ“š Install python packages
run: pip install --user numpy

- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

Expand All @@ -317,9 +328,6 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2

- name: πŸ“š Install python packages
run: pip install --user numpy

- name: πŸ§ͺ Test
if: matrix.parallelisation != 'cuda'
shell: bash
Expand All @@ -342,6 +350,13 @@ jobs:
- name: πŸ“ Create build folder
run: cmake -E make_directory ${{runner.workspace}}/build

- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: πŸ“š Install python packages
run: pip install --user numpy

- name: βš™ Configure
shell: bash
working-directory: ${{runner.workspace}}/build
Expand All @@ -352,9 +367,6 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE -j 2

- name: πŸ“š Install python packages
run: pip install --user numpy

- name: πŸ§ͺ Test
shell: bash
working-directory: ${{runner.workspace}}/build
Expand Down Expand Up @@ -382,6 +394,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: πŸ“š Install python packages
run: pip install --user numpy

Expand Down Expand Up @@ -472,6 +488,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.x'
Expand Down

0 comments on commit edb53db

Please sign in to comment.