File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI-Conda
2
+ # Controls when the action will run. Triggers the workflow on push or pull request
3
+ # events but only for the master branch
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ pull_request :
9
+ jobs :
10
+ test :
11
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ version :
16
+ - " 1.6" # LTS
17
+ - " 1.8" # Current Stable Release
18
+ - " nightly"
19
+ os :
20
+ - ubuntu-latest
21
+ arch :
22
+ - x64
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : julia-actions/setup-julia@v1
26
+ with :
27
+ version : ${{ matrix.version }}
28
+ arch : ${{ matrix.arch }}
29
+ - uses : actions/cache@v1
30
+ env :
31
+ cache-name : cache-artifacts
32
+ with :
33
+ path : ~/.julia/artifacts
34
+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-test-${{ env.cache-name }}-
37
+ ${{ runner.os }}-test-
38
+ ${{ runner.os }}-
39
+ - uses : julia-actions/julia-buildpkg@v1
40
+ env :
41
+ PYTHON : " "
42
+ - uses : julia-actions/julia-runtest@v1
43
+ env :
44
+ PYTHON : " "
Original file line number Diff line number Diff line change
1
+ import PyCall
2
+
3
+ if Sys. islinux () && PyCall. conda
4
+ #=
5
+ If one uses Python managed by Conda.jl, pin scipy version to avoid an error
6
+ "version `GLIBCXX_3.4.30' not found". See the following issues:
7
+ - https://github.com/JuliaPy/PyCall.jl/issues/990#issuecomment-1224878410
8
+ - https://github.com/AtsushiSakai/SciPy.jl/issues/48
9
+ - https://github.com/AtsushiSakai/SciPy.jl/issues/68
10
+ =#
11
+ PyCall. Conda. add (" gcc=12.1.0" ; channel= " conda-forge" )
12
+ # Pin this version, to avoid clashes with libgcc.34
13
+ PyCall. Conda. add (" scipy=1.8.0" )
14
+ end
You can’t perform that action at this time.
0 commit comments