gradio/.github/workflows/test-hygiene.yml
pngwn d30432e9c6
harden CI (#8965)
* test pr

* conditional

* conditional

* conditional

* conditional

* conditional

* changes

* changes

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-05 15:27:26 +01:00

31 lines
762 B
YAML

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
jobs:
test:
name: "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