Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Aug 7, 2024
1 parent 2207e6c commit 2067be8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,21 @@ jobs:
with:
submodules: "true"

- name: Activate virtualenv
run: |
. /usr/local/share/venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Build package in release
if: matrix.CODE_COVERAGE == 'OFF'
run: |
python3 -m pip install --upgrade pip
python3 -m pip install cmake numpy matplotlib
python3 -m pip install .[dev] --verbose
python3 -m pip install .[dev]
- 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
python3 -m pip install numpy matplotlib ruff pytest mpi4py scipy
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
Expand All @@ -157,7 +159,7 @@ jobs:
- name: Check with ruff
run: |
ruff example/ tests/
ruff check example/ tests/
- name: Generate coverage reports
if: matrix.CODE_COVERAGE == 'ON'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ddm_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import mpi4py
import numpy as np
import pytest
from conftest import GeneratorFromMatrix, LocalGeneratorFromMatrix
from conftest import GeneratorFromMatrix
from scipy.linalg import eig, eigh


Expand Down

0 comments on commit 2067be8

Please sign in to comment.