Skip to content

Commit 43d315d

Browse files
Merge pull request #70 from AtsushiSakai/pin-scipy-version-for-conda-users
Pin scipy version for (conda + Linux) users
2 parents 3643542 + 33ddc8b commit 43d315d

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/ci_conda.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: ""

deps/build.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)