Skip to content

Commit

Permalink
fixup...
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Jan 30, 2024
1 parent b9ad2c5 commit c1e66d6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c1e66d6

Please sign in to comment.