Skip to content

Commit

Permalink
Merge pull request #70 from AtsushiSakai/pin-scipy-version-for-conda-…
Browse files Browse the repository at this point in the history
…users

Pin scipy version for (conda + Linux) users
  • Loading branch information
terasakisatoshi authored Nov 8, 2022
2 parents 3643542 + 33ddc8b commit 43d315d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI-Conda
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- "1.6" # LTS
- "1.8" # Current Stable Release
- "nightly"
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: ""
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
14 changes: 14 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import PyCall

if Sys.islinux() && PyCall.conda
#=
If one uses Python managed by Conda.jl, pin scipy version to avoid an error
"version `GLIBCXX_3.4.30' not found". See the following issues:
- https://github.com/JuliaPy/PyCall.jl/issues/990#issuecomment-1224878410
- https://github.com/AtsushiSakai/SciPy.jl/issues/48
- https://github.com/AtsushiSakai/SciPy.jl/issues/68
=#
PyCall.Conda.add("gcc=12.1.0"; channel="conda-forge")
# Pin this version, to avoid clashes with libgcc.34
PyCall.Conda.add("scipy=1.8.0")
end

0 comments on commit 43d315d

Please sign in to comment.