Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/formal-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Formal maintenance

on:
workflow_dispatch:
schedule:
- cron: "17 8 * * 1"
push:
branches: [main]
paths:
- ".github/workflows/formal-maintenance.yml"
- "lean-toolchain"
- "lakefile.toml"
- "lake-manifest.json"
- "formal/**"
- "tools/check_lean_specs.py"
- "tools/check_logic_fixtures.py"
- "baseline/**/*.py"
- "datasets/**/*.py"
- "decomposer/**/*.py"
- "search/**/*.py"
- "training/**/*.py"
- "utils/**/*.py"
- "verifier/**/*.py"
pull_request:
paths:
- ".github/workflows/formal-maintenance.yml"
- "lean-toolchain"
- "lakefile.toml"
- "lake-manifest.json"
- "formal/**"
- "tools/check_lean_specs.py"
- "tools/check_logic_fixtures.py"
- "baseline/**/*.py"
- "datasets/**/*.py"
- "decomposer/**/*.py"
- "search/**/*.py"
- "training/**/*.py"
- "utils/**/*.py"
- "verifier/**/*.py"

permissions:
contents: read

concurrency:
group: formal-maintenance-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
maintain:
name: Lean 4.32 proof and conformance gate
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install pinned Lean toolchain
uses: leanprover/lean-action@v1
with:
auto-config: false
build: false
test: false
lint: false

- name: Build without warnings
run: lake build --wfail

- name: Check theorem links, tests, dependencies, and axiom footprints
run: python3 tools/check_lean_specs.py

- name: Replay shared logical evaluation fixtures
run: python3 tools/check_logic_fixtures.py
12 changes: 12 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ on:
- "verifier/**"
- "baseline/**"
- "training/**"
- "formal/**"
- "tools/check_lean_specs.py"
- "tools/check_logic_fixtures.py"
- "lakefile.toml"
- "lake-manifest.json"
- "lean-toolchain"
pull_request:
paths:
- ".github/workflows/pytest.yml"
Expand All @@ -30,6 +36,12 @@ on:
- "verifier/**"
- "baseline/**"
- "training/**"
- "formal/**"
- "tools/check_lean_specs.py"
- "tools/check_logic_fixtures.py"
- "lakefile.toml"
- "lake-manifest.json"
- "lean-toolchain"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ tempCodeRunnerFile.py

# Ruff stuff:
.ruff_cache/
.lake/

# PyPI configuration file
.pypirc
Expand Down
Loading
Loading