-
Notifications
You must be signed in to change notification settings - Fork 17
/
pipeline.yml
103 lines (92 loc) · 3.14 KB
/
pipeline.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
env:
JULIA_VERSION: "1.6.2"
JULIA_MINOR_VERSION: "1.6"
OPENBLAS_NUM_THREADS: 1
GKSwstype: nul
steps:
- label: "init project env"
key: "init_project_env"
command:
- "echo $$JULIA_DEPOT_PATH"
- "julia --project -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
- "julia --project -e 'using Conda; Conda.add(\"scikit-learn\")'"
- "julia --project -e 'using Conda; Conda.add(\"matplotlib\")'"
env:
PYTHON: ""
agents:
config: cpu
queue: central
slurm_ntasks: 1
- wait
- label: "Lorenz"
key: "lorenz"
command: |
export PYTHON="$$JULIA_DEPOT_PATH/conda/3/bin/python"
export PYTHONHOME="$$JULIA_DEPOT_PATH/conda/3/bin"
export CONDA_JL_HOME="$$JULIA_DEPOT_PATH/conda/3"
mkdir examples/Lorenz/depot
export JULIA_DEPOT_PATH="$$(pwd)/examples/Lorenz/depot:$$JULIA_DEPOT_PATH"
julia --color=yes --project -e '
println("--- Instantiating Project")
using Pkg;
Pkg.instantiate()
Pkg.activate("examples/Lorenz")
Pkg.instantiate()
println("+++ Running Lorenz")
include("examples/Lorenz/Lorenz_example.jl")'
artifact_paths:
- "examples/Lorenz/output/*.png"
agents:
config: cpu
queue: central
slurm_ntasks: 1
- label: "Gaussian Process Emulator"
key: "gaussian_process_emulator"
command: |
export PYTHON="$$JULIA_DEPOT_PATH/conda/3/bin/python"
export PYTHONHOME="$$JULIA_DEPOT_PATH/conda/3/bin"
export CONDA_JL_HOME="$$JULIA_DEPOT_PATH/conda/3"
mkdir examples/GaussianProcessEmulator/depot
export JULIA_DEPOT_PATH="$$(pwd)/examples/GaussianProcessEmulator/depot:$JULIA_DEPOT_PATH"
julia --color=yes --project -e '
println("--- Instantiating Project")
using Pkg;
Pkg.instantiate()
Pkg.activate("examples/GaussianProcessEmulator")
Pkg.instantiate()
println("+++ Running Learn Noise")
include("examples/GaussianProcessEmulator/learn_noise.jl")
println("+++ Running PlotGP")
include("examples/GaussianProcessEmulator/plot_GP.jl")'
artifact_paths:
- "examples/GaussianProcessEmulator/output/*.png"
env:
PYTHON: "$$JULIA_DEPOT_PATH/conda/3/bin/python"
PYTHONHOME: "$$JULIA_DEPOT_PATH/conda/3/bin"
CONDA_JL_HOME: "$$JULIA_DEPOT_PATH/conda/3"
agents:
config: cpu
queue: central
slurm_ntasks: 1
- label: "Cloudy"
key: "cloudy"
command: |
export PYTHON="$$JULIA_DEPOT_PATH/conda/3/bin/python"
export PYTHONHOME="$$JULIA_DEPOT_PATH/conda/3/bin"
export CONDA_JL_HOME="$$JULIA_DEPOT_PATH/conda/3"
mkdir examples/Cloudy/depot
export JULIA_DEPOT_PATH="$$(pwd)/examples/Cloudy/depot:$$JULIA_DEPOT_PATH"
julia --color=yes --project -e '
println("--- Instantiating Project")
using Pkg;
Pkg.instantiate()
Pkg.activate("examples/Cloudy")
Pkg.instantiate()
println("+++ Running Cloudy")
include("examples/Cloudy/Cloudy_example.jl")'
artifact_paths:
- "examples/Cloudy/output/*.png"
agents:
config: cpu
queue: central
slurm_ntasks: 1