Skip to content

[SPARK4] Finish migration to github actions #1

[SPARK4] Finish migration to github actions

[SPARK4] Finish migration to github actions #1

Workflow file for this run

name: Notebook-tests
on:
schedule:
- cron: "0 0 * * *"
# TODO(hhd): Remove this before merging
pull_request:
branches:
- main
jobs:
notebook-tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Conda
uses: conda-incubator/setup-miniconda@v3
with:
conda-solver: libmamba
activate-environment: glow-docs
- name: Cache Conda env
uses: actions/cache@v3
with:
path: /usr/share/miniconda/envs/glow
key:
conda-${{ hashFiles('python/environment.yml') }}-${{ env.CACHE_NUMBER }}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
id: cache
- name: Update environment
run:
conda env update -n glow -f python/environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Run all notebook tests
run: |
python docs/dev/run-nb-test.py --cli-profile docs-ci