From edb53db6185f5b3bcca30a7d94e272877e6a073b Mon Sep 17 00:00:00 2001 From: puerling Date: Wed, 11 Sep 2024 13:45:20 +0200 Subject: [PATCH] CI: install python and numpy before configuring --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71ca3d547..a7ac3a146 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -472,6 +488,7 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.x'