Skip to content

Enable echo when running suitesparse.sh #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: continuous_integration/environment.yml
channels: conda-forge
channels: conda-forge,nodefaults
channel-priority: strict
activate-environment: suitesparse-graphblas
auto-activate-base: false
- name: GraphBLAS (from conda-forge)
if: (contains(matrix.source, 'conda-forge'))
run: |
conda install -c conda-forge graphblas=${{ matrix.graphblas-version }} pytest-randomly
conda install graphblas=${{ matrix.graphblas-version }}
- name: GraphBLAS (from source)
if: (contains(matrix.source, 'source'))
run: |
Expand Down
5 changes: 2 additions & 3 deletions continuous_integration/environment.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: suitesparse-graphblas
channels:
- conda-forge
- defaults
- nodefaults # Only install packages from conda-forge for faster solving
dependencies:
# - graphblas=6.0.2
- cffi
- cython
- numpy
- pytest
- pytest-randomly
- coverage
- black
- flake8
4 changes: 3 additions & 1 deletion suitesparse.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

set -x # echo on

# parse SuiteSparse version from first argument, a git tag that ends in the version (no leading v)
if [[ $1 =~ refs/tags/([0-9]*\.[0-9]*\.[0-9]*)\..*$ ]]; then
VERSION=${BASH_REMATCH[1]}
else
echo "Specify a SuiteSparse version, such as: $0 refs/tags/7.4.3.0"
echo "Specify a SuiteSparse version, such as: $0 refs/tags/7.4.3.0 (got: $1)"
exit -1
fi
echo VERSION: $VERSION
Expand Down