Skip to content

Update test_actions.yml #3

Update test_actions.yml

Update test_actions.yml #3

Workflow file for this run

name: Monthly Notebook Check
on:
# schedule:
# - cron: '0 8 1 * *' # Every month on the 1st at 08:00 UTC
push:
branches:
- chienyuanchang/test_github_actions
workflow_dispatch: # Allows manual run from GitHub UI
jobs:
test-notebooks:
runs-on: ubuntu-latest
environment: MMI-Samples
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbformat nbconvert jupyter ipykernel
python -m ipykernel install --user --name=python3
- name: List notebook files
run: ls -la notebooks
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
auth-type: OIDC
- name: Run notebook tests
run: |
set -e
python tools/test_notebooks.py