Skip to content

Temporarily disables CI colab workflow until local runner is registered #2

Temporarily disables CI colab workflow until local runner is registered

Temporarily disables CI colab workflow until local runner is registered #2

name: Test colab notebooks
on:
# Trigger the workflow on push
push:
# Every branch
branches:
- '**'
# But do not run this workflow on creating a new tag starting with 'v', e.g. 'v1.0.3' (see pypi-publish.yml)
tags-ignore:
- 'v*'
# Trigger the workflow on pull request
#pull_request:
# branches:
# - '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent workflow, skipping runs queued between the run in-progress and latest queued.
# And cancel in-progress runs.
concurrency:
group:
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-colab:
strategy:
fail-fast: false
matrix:
python-version: ['3.12']
runs-on: ubuntu-latest
container:
image: europe-docker.pkg.dev/colab-images/public/runtime:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade package installer for Python
run: python -m pip install --upgrade pip
- name: Install Python dependencies
run: python -m pip install 'easydiffraction[charts]' nbconvert nbmake pytest pytest-xdist
- name: Check if Jupyter Notebooks run without errors
run: >
python -m pytest --nbmake docs/tutorials/ --nbmake-timeout=300 --color=yes -n=auto