Skip to content

Commit

Permalink
Workflow: check file imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoobysmith committed Apr 17, 2024
1 parent 4e9d26a commit 20eb535
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check_file_import.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 0 additions & 7 deletions HepLean/AnomalyCancellation/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.AnomalyCancellation.LinearMaps
import Mathlib.Tactic.Polyrith
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.FieldSimp
import Mathlib.NumberTheory.FLT.Basic
import Mathlib.Algebra.QuadraticDiscriminant
import Mathlib.Algebra.Module.Basic
import Mathlib.Algebra.Module.LinearMap.Basic
/-!
# Basic set up for anomaly cancellation conditions
Expand Down
1 change: 1 addition & 0 deletions HepLean/AnomalyCancellation/LinearMaps.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ quadratic and cubic equations.
## TODO
Use definitions in `Mathlib4` for definitions where possible.
In particular a HomogeneousQuadratic should be a map `V →ₗ[ℚ] V →ₗ[ℚ] ℚ` etc.
-/

Expand Down

0 comments on commit 20eb535

Please sign in to comment.