-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from AtsushiSakai/pin-scipy-version-for-conda-…
…users Pin scipy version for (conda + Linux) users
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |