Merge pull request #17 from martinRenou/update_notebook #22
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
name: Conda build (Windows Notebook) | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- 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 -l {0} | |
run: conda --version | |
- name: Checkout beakerx_kernel_base repo | |
uses: actions/checkout@v2 | |
with: | |
repository: twosigma/beakerx_kernel_base | |
path: beakerx_kernel_base | |
- name: Set Var | |
shell: bash -l {0} | |
run: | | |
echo "TMP=$USERPROFILE\\AppData\\Local\\Temp" >> $GITHUB_ENV | |
echo "TEMP=$USERPROFILE\\AppData\\Local\\Temp" >> $GITHUB_ENV | |
- name: Build BeakerX Kernel Base | |
shell: bash -l {0} | |
run: | | |
cd $GITHUB_WORKSPACE/beakerx_kernel_base | |
./gradlew install | |
- name: Update conda package | |
shell: bash -l {0} | |
run: | | |
cd groovy-dist | |
conda env create -n beakerx -f configuration.yml | |
- name: Build BeakerX Groovy Kernel | |
shell: bash -l {0} | |
run: | | |
cd groovy-dist | |
conda activate beakerx | |
pip install -r requirements.txt --verbose | |
beakerx_kernel_groovy install | |
- name: Checkout beakerx_tests repo | |
uses: actions/checkout@v2 | |
with: | |
repository: twosigma/beakerx_tests | |
path: beakerx_tests | |
- name: Run e2e tests (Groovy kernel) | |
shell: bash -l {0} | |
run: | | |
cd $GITHUB_WORKSPACE/beakerx_tests/autotests | |
conda activate beakerx | |
pip install psutil | |
python ci_tests.py --app=notebook --tst=groovy.Groovy* | |
- name: Publish Test Report | |
if: ${{ always() }} | |
uses: scacap/action-surefire-report@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
report_paths: "**/test-results/test/TEST-*.xml" | |