ci: Use central workflow file for notebook testing #18
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
# 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 |