Skip to content

Commit f5df25f

Browse files
committed
oops typo
1 parent bc4c1d9 commit f5df25f

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: ["windows-latest"]
18-
python-version: [3.9]
19-
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
20-
# python-version: [3.7, 3.8, 3.9]
17+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
18+
python-version: [3.7, 3.8, 3.9]
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v2
@@ -38,17 +36,18 @@ jobs:
3836
CYTHON_COVERAGE: true
3937
run: |
4038
coverage run --branch -m pytest
39+
coverage run -a suitesparse_graphblas/tests/test_initialize.py
4140
- name: Lint
4241
run: |
4342
black *py suitesparse_graphblas --check --diff
4443
flake8 *py suitesparse_graphblas
45-
- name: Create headers check
44+
- name: create_headers.py check
4645
run: |
4746
# These shouldn't change, so make copies to compare to
4847
cp suitesparse_graphblas/suitesparse_graphblas.h .
4948
cp suitesparse_graphblas/suitesparse_graphblas_no_complex.h .
50-
cp suitesparse_graphblas/source.h .
51-
python suitesparse_graphblas/create_headers.py
49+
cp suitesparse_graphblas/source.c .
50+
coverage run -a suitesparse_graphblas/create_headers.py
5251
diff suitesparse_graphblas/suitesparse_graphblas.h suitesparse_graphblas.h
5352
diff suitesparse_graphblas/suitesparse_graphblas_no_complex.h suitesparse_graphblas_no_complex.h
54-
diff suitesparse_graphblas/source.h source.h
53+
diff suitesparse_graphblas/source.c source.c
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if __name__ == "__main__":
2+
import suitesparse_graphblas as ssgb
3+
import pytest
4+
5+
assert ssgb.is_initialized() is False
6+
ssgb.initialize()
7+
assert ssgb.is_initialized() is True
8+
with pytest.raises(RuntimeError, match="GraphBLAS is already initialized"):
9+
ssgb.initialize()

0 commit comments

Comments
 (0)