Skip to content

ci: Use central workflow file for notebook testing #18

ci: Use central workflow file for notebook testing

ci: Use central workflow file for notebook testing #18

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
name: Testing Notebooks
on:
schedule: # Test all notebooks daily
- cron: '0 10 * * *'
workflow_dispatch: # Test all notebooks on demand
push:
branches:
- main
paths:
- '.github/workflows/notebooks.yaml' # This workflow
- '.github/workflows/test_notebook.yaml' # Called workflow
- '.github/notebook_lists/*' # Notebook lists
- 'recipes/**/*.ipynb'
pull_request:
branches:
- main
paths:
- '.github/workflows/notebooks.yaml' # This workflow
- '.github/workflows/test_notebook.yaml' # Called workflow
- '.github/notebook_lists/*' # Notebook lists
- 'recipes/**/*.ipynb'
env:
LC_ALL: en_US.UTF-8
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
vanilla:
uses: ibm-granite-community/utils/.github/workflows/test_notebook.yaml@main
secrets: inherit
with:
notebook-lists: |
.github/notebook_lists/vanilla_notebooks.txt
python-versions: >-
3.10
3.11
pdl:
uses: ibm-granite-community/utils/.github/workflows/test_notebook.yaml@main
secrets: inherit
with:
notebook-lists: |
.github/notebook_lists/pdl_notebooks.txt
python-versions: >-
3.11