-
Notifications
You must be signed in to change notification settings - Fork 23
71 lines (67 loc) · 1.91 KB
/
julia-setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Julia Testing
on: [push]
jobs:
julia:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
install-method: [pip, mamba]
fail-fast: false
max-parallel: 20
runs-on: ${{ matrix.os }}
steps:
# Mamba steps
- name: Set up mamba
uses: conda-incubator/setup-miniconda@v2
if: matrix.install-method == 'mamba'
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
use-only-tar-bz2: true
channel-priority: strict
miniforge-variant: Mambaforge
use-mamba: true
- name: Install mamba packages
if: matrix.install-method == 'mamba'
shell: bash -l {0}
run: |
mamba install -y python==3.8 juliaup r-base
# Non-mamba steps
- name: Install Python
if: matrix.install-method == 'pip'
uses: actions/setup-python@v4
with:
python-version: '3.8'
# - name: Install R
# if: matrix.install-method == 'pip'
# uses: r-lib/actions/setup-r@v2
# # with:
# # r-version: 4.2.3
- name: Install Julia
if: matrix.install-method == 'pip'
uses: julia-actions/setup-julia@v1
# Check python, R & julia installations
- name: Check Python version & location
shell: bash -l {0}
run: |
python -v
which python
- name: Check R version & location
shell: bash -l {0}
run: |
R -v
which R
- name: Check Julia version & location
shell: bash -l {0}
run: |
julia -v
which julia
# Test julia installation of PyCall
- name: Install PyCall (no mamba)
if: matrix.install-method == 'pip'
run: julia -e "using Pkg; Pkg.add(\"PyCall\")"
- name: Install PyCall (mamba)
if: matrix.install-method == 'mamba'
shell: bash -l {0}
run: julia -e "using Pkg; Pkg.add(\"PyCall\")"