Skip to content

Commit 1a59a04

Browse files
authored
Enable echo when running suitesparse.sh (#94)
* Enable echo when running `suitesparse.sh` * Make conda faster in CI
1 parent 9fc4990 commit 1a59a04

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ jobs:
3131
auto-update-conda: true
3232
python-version: ${{ matrix.python-version }}
3333
environment-file: continuous_integration/environment.yml
34-
channels: conda-forge
34+
channels: conda-forge,nodefaults
35+
channel-priority: strict
3536
activate-environment: suitesparse-graphblas
37+
auto-activate-base: false
3638
- name: GraphBLAS (from conda-forge)
3739
if: (contains(matrix.source, 'conda-forge'))
3840
run: |
39-
conda install -c conda-forge graphblas=${{ matrix.graphblas-version }} pytest-randomly
41+
conda install graphblas=${{ matrix.graphblas-version }}
4042
- name: GraphBLAS (from source)
4143
if: (contains(matrix.source, 'source'))
4244
run: |
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: suitesparse-graphblas
22
channels:
33
- conda-forge
4-
- defaults
4+
- nodefaults # Only install packages from conda-forge for faster solving
55
dependencies:
66
# - graphblas=6.0.2
77
- cffi
88
- cython
99
- numpy
1010
- pytest
11+
- pytest-randomly
1112
- coverage
12-
- black
13-
- flake8

suitesparse.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
22

3+
set -x # echo on
4+
35
# parse SuiteSparse version from first argument, a git tag that ends in the version (no leading v)
46
if [[ $1 =~ refs/tags/([0-9]*\.[0-9]*\.[0-9]*)\..*$ ]]; then
57
VERSION=${BASH_REMATCH[1]}
68
else
7-
echo "Specify a SuiteSparse version, such as: $0 refs/tags/7.4.3.0"
9+
echo "Specify a SuiteSparse version, such as: $0 refs/tags/7.4.3.0 (got: $1)"
810
exit -1
911
fi
1012
echo VERSION: $VERSION

0 commit comments

Comments
 (0)