CI #56
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 0 * * WED" | |
| workflow_dispatch: | |
| jobs: | |
| test_colab: | |
| uses: fem-on-colab/open-in-colab-workflow/.github/workflows/workflow_call.yml@main | |
| with: | |
| work_directory: notebooks_copy | |
| notebook_pattern: "**/*.ipynb" | |
| notebook_preparation: | | |
| rsync -avz --include="*.ipynb" --exclude="*" . notebooks_copy/ | |
| test_script: | | |
| python3 -m pytest --nbval notebooks_copy | |
| publish_on: artifact@notebooks | |
| warn: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'firedrakeproject/notebooks' && github.ref == 'refs/heads/main' && github.event_name == 'schedule' | |
| steps: | |
| - name: Warn if scheduled workflow is about to be disabled | |
| uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main | |
| with: | |
| workflow-filename: ci.yml | |
| days-elapsed: 50 |