Workflow: check file imports

This commit is contained in:
jstoobysmith 2024-04-17 06:23:48 -04:00
parent 4e9d26a1a9
commit 20eb535f60
3 changed files with 23 additions and 7 deletions

22
.github/workflows/check_file_import.yml vendored Normal file
View file

@ -0,0 +1,22 @@
on:
push:
name: check file import
jobs:
check_file_import:
name: check file import
runs-on: ubuntu-latest
steps:
- name: clean up
run: |
find . -name . -o -prune -exec rm -rf -- {} +
- uses: actions/checkout@v4
- name: update HepLean.lean
run: |
git ls-files 'HepLean/*.lean' | LC_ALL=C sort | sed 's/\.lean//;s,/,.,g;s/^/import /' > HepLean.lean
- name: check that all files are imported
run: git diff --exit-code