Skip to content

Commit

Permalink
ci: install scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Mar 24, 2024
1 parent 4b45035 commit a410df7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install numpy
- run: pip install numpy scipy
- run: sudo apt-get install libsuitesparse-dev libbtbb-dev liblapack-dev libcfitsio-dev libmetis-dev libgsl-dev
- run: cmake -DPython_EXECUTABLE=$(which python) . && make && sudo make install
- run: python -c "import photospline"
Expand All @@ -53,7 +53,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install numpy
- run: pip install numpy scipy
- run: brew install suite-sparse cfitsio gsl
- run: cmake -DPython_EXECUTABLE=$(which python) . && make && make install
- run: python -c "import photospline"
Expand All @@ -78,7 +78,7 @@ jobs:
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y cmake clang libsuitesparse-dev libbtbb-dev liblapack-dev libcfitsio-dev libmetis-dev libgsl-dev python3-dev python3-numpy
apt-get install -q -y cmake clang libsuitesparse-dev libbtbb-dev liblapack-dev libcfitsio-dev libmetis-dev libgsl-dev python3-dev python3-numpy python3-scipy
run: |
cmake -DPython_EXECUTABLE=$(which python3) .
make
Expand Down
4 changes: 2 additions & 2 deletions test/test_nnls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class TestNNLS(unittest.TestCase):
def setUp(self):
try:
from scipy import sparse
from scipy import sparse # type: ignore[import]
except ImportError:
raise unittest.SkipTest("test requires scipy")

Expand All @@ -18,7 +18,7 @@ def testSparseIsSparse(self):
self.assertEqual(len(self.Asp.data), 3)

def testImplementationMatchesScipy(self):
from scipy import optimize
from scipy import optimize # type: ignore[import]

np.testing.assert_allclose(
photospline.nnls(self.Asp, self.b),
Expand Down

0 comments on commit a410df7

Please sign in to comment.