-
Notifications
You must be signed in to change notification settings - Fork 8
100 lines (96 loc) · 2.82 KB
/
main.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
name: Conda build (Ubuntu, notebook)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Cache gradle
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle
- name: Cache Conda
uses: actions/cache@v1
with:
path: ~/.conda
key: ${{ runner.os }}-mconda-${{ hashFiles('**/configuration.yml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Verify conda version
shell: bash
run: conda --version
- name: Checkout beakerx_kernel_base repo
uses: actions/checkout@v2
with:
repository: twosigma/beakerx_kernel_base
path: beakerx_kernel_base
- name: Checkout beakerx_base repo
uses: actions/checkout@v2
with:
repository: twosigma/beakerx_base
ref: master
path: beakerx_base
- name: Checkout beakerx_kernel_groovy repo
uses: actions/checkout@v2
with:
repository: martinRenou/beakerx_kernel_groovy
ref: 'update_notebook'
path: beakerx_kernel_groovy
- name: Checkout beakerx_tests repo
uses: actions/checkout@v2
with:
repository: twosigma/beakerx_tests
path: beakerx_tests
- name: Build BeakerX Kernel Base
run: |
cd $GITHUB_WORKSPACE/beakerx_kernel_base
chmod +x gradlew
./gradlew install
- name: Update conda package
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/beakerx_tests/dev_scripts
conda env create -n beakerx -f configuration.yml
- name: Build Groovy Kernel
shell: bash -l {0}
run: |
conda activate beakerx
cd $GITHUB_WORKSPACE/beakerx_kernel_groovy/groovy-dist
pip install -r requirements.txt --verbose
beakerx_kernel_groovy install
- name: Build BeakerX Base
shell: bash -l {0}
run: |
conda activate beakerx
cd $GITHUB_WORKSPACE/beakerx_base
pip install -e .
- name: Build BeakerX widgets
shell: bash -l {0}
run: |
conda activate beakerx
cd beakerx_widgets
pip install -r requirements.txt --verbose
beakerx install
- name: Run e2e tests (Widgets)
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/beakerx_tests/autotests
chmod +x gradlew
conda activate beakerx
pip install psutil
python ci_tests.py --app=notebook --tst=*.Widget*