Skip to content

Commit

Permalink
GHA matrix tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed May 5, 2024
1 parent 1ec63bc commit e78c0ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
matrix:
python-version: [3.9, 3.12]
environment: ["min-deps", "full", "min-ver"]
exclude:
- python-version: 3.9
environment: "full"
exclude:
- python-version: 3.12
environment: "min-ver"
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/min-ver-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- nomkl

# Backends
- tensorflow ==2.15.*
- tensorflow ==2.10.*
- dask ==2021.*

# Testing
Expand Down
6 changes: 5 additions & 1 deletion opt_einsum/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,13 @@ def test_sparse(string):
sparse_views = [sparse.COO.from_numpy(x) for x in views]
sparse_opt = expr(*sparse_views)

# If the expression returns a float, stop here
if not ein.shape:
assert pytest.approx(ein) == 0.0
return

# check type is maintained when not using numpy arrays
assert isinstance(sparse_opt, sparse.COO)

assert np.allclose(ein, sparse_opt.todense())

# try raw contract
Expand Down

0 comments on commit e78c0ec

Please sign in to comment.