forked from BANANASJIM/padctl
-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (21 loc) · 714 Bytes
/
Copy pathlean.yml
File metadata and controls
21 lines (21 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: lean
on: [push, pull_request]
jobs:
lean:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install elan
run: |
curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Build Lean spec
working-directory: formal/lean
run: lake build
- name: Verify zero sorry
working-directory: formal/lean
run: |
if grep -rn 'sorry' Padctl/ test/ --include='*.lean' | grep -v '^\s*--' | grep -v 'sorry.*--.*OK'; then
echo "ERROR: sorry found in proofs"
exit 1
fi