2024-08-05 22:27:26 +08:00
|
|
|
name: "hygiene"
|
2024-02-01 08:46:55 +08:00
|
|
|
|
|
|
|
on:
|
2024-08-05 22:27:26 +08:00
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- 5.0-dev
|
2024-02-01 08:46:55 +08:00
|
|
|
|
|
|
|
concurrency:
|
2024-08-05 22:27:26 +08:00
|
|
|
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
|
2024-02-01 08:46:55 +08:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-08-08 01:27:01 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2024-02-01 08:46:55 +08:00
|
|
|
jobs:
|
2024-08-05 22:27:26 +08:00
|
|
|
test:
|
2024-08-08 01:27:01 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2024-08-06 18:54:11 +08:00
|
|
|
name: "hygiene-test"
|
2024-02-01 08:46:55 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-02 02:14:41 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-01 08:46:55 +08:00
|
|
|
- name: Generate Notebooks
|
|
|
|
run: |
|
2024-02-14 01:05:19 +08:00
|
|
|
pip install nbformat && python scripts/generate_notebooks.py
|
2024-02-01 08:46:55 +08:00
|
|
|
- name: Print Git Status
|
|
|
|
run: echo $(git status) && echo $(git diff)
|
2024-08-05 22:27:26 +08:00
|
|
|
- name: Assert Notebooks Match
|
2024-02-01 08:46:55 +08:00
|
|
|
run: git status | grep "nothing to commit, working tree clean"
|
|
|
|
- name: Check for large files
|
2024-04-09 01:13:44 +08:00
|
|
|
uses: actionsdesk/lfs-warning@v3.3
|
2024-02-01 08:46:55 +08:00
|
|
|
with:
|
|
|
|
filesizelimit: 5MB
|