Skip to content

Commit b1a461c

Browse files
committed
Install SciPy on CI
1 parent 06a6c33 commit b1a461c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/aot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
architecture: ${{ matrix.architecture }}
3535
- run: python --version
36-
- run: python -m pip install --user numpy
36+
- run: python -m pip install --user numpy scipy
3737
- name: Setup julia
3838
uses: julia-actions/setup-julia@v1
3939
with:

.github/workflows/system.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
python-version: ${{ matrix.python-version }}
5151
architecture: ${{ matrix.architecture }}
52-
- run: python -m pip install --user numpy
52+
- run: python -m pip install --user numpy scipy
5353
- run: python -m pip install virtualenv
5454
# virtualenv test with Python 2.7 is failing for some reason.
5555
# Skipping it for now.

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using PyCall
22
using PyCall: hasproperty
33
using Test, Dates, Serialization
4+
import Conda
45

56
filter(f, itr) = collect(Iterators.filter(f, itr))
67
filter(f, d::AbstractDict) = Base.filter(f, d)
@@ -13,6 +14,10 @@ PYTHONEXECUTABLE=get(ENV,"PYTHONEXECUTABLE","")
1314
@testset "CI setup" begin
1415
if lowercase(get(ENV, "CI", "false")) == "true"
1516
@test !ispynull(pyimport_e("numpy"))
17+
if PyCall.conda && ispynull(pyimport_e("scipy.sparse"))
18+
Conda.add("scipy")
19+
end
20+
@test !ispynull(pyimport_e("scipy.sparse"))
1621
end
1722
end
1823

0 commit comments

Comments
 (0)