Skip to content

Commit

Permalink
fix windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Mar 2, 2024
1 parent 06bf634 commit 6320d75
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions brainpy/_src/math/event/tests/test_event_csrmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
if import_taichi(error_if_not_found=False) is None:
pytest.skip('no taichi', allow_module_level=True)

import platform
force_test = False # turn on to force test on windows locally
if platform.platform() == 'Windows' and not force_test:
pytest.skip('skip windows', allow_module_level=True)


seed = 1234


Expand Down
7 changes: 6 additions & 1 deletion brainpy/_src/math/jitconn/tests/test_event_matvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
if import_taichi(error_if_not_found=False) is None:
pytest.skip('no taichi', allow_module_level=True)

shapes = [(100, 200), (10, 1000), (2, 1000), (1000, 10), (1000, 2)]
import platform
force_test = False # turn on to force test on windows locally
if platform.platform() == 'Windows' and not force_test:
pytest.skip('skip windows', allow_module_level=True)


shapes = [(100, 200), (1000, 10)]


Expand Down
6 changes: 6 additions & 0 deletions brainpy/_src/math/jitconn/tests/test_matvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
if import_taichi(error_if_not_found=False) is None:
pytest.skip('no taichi', allow_module_level=True)

import platform
force_test = False # turn on to force test on windows locally
if platform.platform() == 'Windows' and not force_test:
pytest.skip('skip windows', allow_module_level=True)


shapes = [(100, 200), (1000, 10)]


Expand Down
7 changes: 6 additions & 1 deletion brainpy/_src/math/sparse/tests/test_csrmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@
import brainpy as bp
import brainpy.math as bm
from brainpy._src.dependency_check import import_taichi

if import_taichi(error_if_not_found=False) is None:
pytest.skip('no taichi', allow_module_level=True)

import platform
force_test = False # turn on to force test on windows locally
if platform.platform() == 'Windows' and not force_test:
pytest.skip('skip windows', allow_module_level=True)


seed = 1234


Expand Down

0 comments on commit 6320d75

Please sign in to comment.