Skip to content

Commit 61bcf5d

Browse files
committed
change assert and print in CI run
1 parent 03df353 commit 61bcf5d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ jobs:
288288
sys.exit(1)
289289
"
290290
291-
- name: Verify array backend uses pure Python
291+
- name: Verify array backend does not use numpy
292292
run: |
293293
python -c "
294294
from gradient_free_optimizers._array_backend import _backend_name, HAS_NUMPY
295295
assert not HAS_NUMPY, 'HAS_NUMPY should be False'
296-
assert _backend_name == 'pure', f'Expected pure backend, got {_backend_name}'
297-
print('OK: using pure Python array backend')
296+
assert _backend_name in ('pure', 'c_extension'), f'Unexpected backend: {_backend_name}'
297+
print(f'OK: using {_backend_name} array backend (no numpy)')
298298
"
299299
300300
- name: Run dependency isolation tests

0 commit comments

Comments
 (0)