Skip to content

add nbtest job to the GitHub Actions CI #1

add nbtest job to the GitHub Actions CI

add nbtest job to the GitHub Actions CI #1

Workflow file for this run

name: notebook-tests
on:
push:
branches:
- main
paths:
- notebooks/**
pull_request:
branches:
- main
paths:
- notebooks/**
jobs:
tests:
runs-on: ubuntu-latest
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
env:
discovery.type: single-node
xpack.security.enabled: false
xpack.security.http.ssl.enabled: false
xpack.license.self_generated.type: trial
ports:
- 9200:9200
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup nbtest
run: make nbtest
- name: Warm up
run: sleep 30 && bin/nbtest notebooks/search/00-quick-start.ipynb >/dev/null 2>&1
- name: Run tests
run: PATCH_ES=1 FORCE_COLOR=1 make -s test