diff --git a/.github/workflows/ci_conda.yml b/.github/workflows/ci_conda.yml new file mode 100644 index 0000000..f7576a5 --- /dev/null +++ b/.github/workflows/ci_conda.yml @@ -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: "" diff --git a/deps/build.jl b/deps/build.jl new file mode 100644 index 0000000..40523a8 --- /dev/null +++ b/deps/build.jl @@ -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