gradio/.github/workflows/test-hygiene.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
825 B
YAML
Raw Normal View History

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