Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Jun 18, 2024
1 parent ee1dc9c commit 7d22929
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions brainpy/_src/math/event/tests/test_event_csrmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

# bm.set_platform('gpu')

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


# Skip the test in Github Actions
IS_GITHUB_ACTIONS = os.getenv('IS_GITHUB_ACTIONS', '0')
if IS_GITHUB_ACTIONS == '1':
Expand Down
4 changes: 2 additions & 2 deletions brainpy/_src/math/jitconn/tests/test_event_matvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

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

# Skip the test in Github Actions
IS_GITHUB_ACTIONS = os.getenv('IS_GITHUB_ACTIONS', '0')
Expand Down
5 changes: 5 additions & 0 deletions brainpy/_src/math/sparse/tests/test_csrmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

# bm.set_platform('gpu')

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

# Skip the test in Github Actions
IS_GITHUB_ACTIONS = os.getenv('IS_GITHUB_ACTIONS', '0')
if IS_GITHUB_ACTIONS == '1':
Expand Down

0 comments on commit 7d22929

Please sign in to comment.