diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4ba2160..1347688 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -124,24 +124,26 @@ jobs: - name: Build package in release if: matrix.CODE_COVERAGE == 'OFF' run: | - pip3 install cmake numpy matplotlib - pip3 install .[dev] --user --verbose + python3 -m pip install --upgrade pip + python3 -m pip install cmake numpy matplotlib + python3 -m pip install .[dev] --verbose - name: Build package in debug for coverage if: matrix.CODE_COVERAGE == 'ON' run: | mkdir build && cd build + python3 -m pip install --upgrade pip python3 -m pip install cmake numpy matplotlib ruff pytest mpi4py CC=${{ matrix.CC_COMPILER }} CXX=${{ matrix.CXX_COMPILER }} cmake -DUSE_SANITIZER=${{ matrix.USE_SANITIZER }} -DCMAKE_BUILD_TYPE=${{ matrix.CMAKE_BUILD_TYPE }} -DCODE_COVERAGE=${{ matrix.CODE_COVERAGE }} ../ make - name: Run tests - run: | - export PYTHONPATH="$PWD/build" - mpirun -np 1 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests - mpirun -np 2 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests - mpirun -np 3 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests - mpirun -np 4 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests + run: | + export PYTHONPATH="$PWD/build" + mpirun -np 1 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests + mpirun -np 2 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests + mpirun -np 3 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests + mpirun -np 4 ${{ matrix.MPIEXEC_PREFLAGS }} python3 -m pytest tests - name: Check format if: matrix.CODE_COVERAGE == 'ON'