Skip to content

Commit 5750c6f

Browse files
author
Josh Cohen
committed
Revert changes to CI permissions and tests
1 parent 7525156 commit 5750c6f

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ name: Deploy Documentation
33
on:
44
push:
55
branches: [main]
6-
pull_request:
7-
branches: [main]
8-
workflow_dispatch:
96

107
jobs:
118
deploy_doc:
129
name: Deploy documentation
1310
runs-on: ubuntu-latest
11+
environment: github-pages
1412
permissions:
1513
contents: read
1614
pages: write
@@ -25,11 +23,6 @@ jobs:
2523
- name: Build API documentation
2624
run: lake build Strata:docs
2725
working-directory: docs/api
28-
- name: Debug API docs location
29-
run: |
30-
echo "Listing docs/api/.lake/build/doc:"
31-
ls -la docs/api/.lake/build/doc || echo "Not found at docs/api/.lake/build/doc"
32-
find docs/api -name "*.html" -type f | head -20 || echo "No HTML files found"
3326
- name: Build documentation
3427
run: ./generate.sh
3528
working-directory: docs/verso
@@ -45,4 +38,4 @@ jobs:
4538
with:
4639
path: docs/verso/_out
4740
- name: Deploy to GitHub Pages
48-
uses: actions/deploy-pages@v4
41+
uses: actions/deploy-pages@v4

StrataTest/DDM/Integration/Java/TestGen.lean

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,7 @@ elab "#testRoundtrip" : command => do
307307
let some simple := state.loaded.dialects["Simple"]?
308308
| Lean.logError "Simple dialect not found"; return
309309
let dm := Strata.DialectMap.ofList! [Strata.initDialect, simple]
310-
let srcFile := System.FilePath.mk (← Lean.getFileName)
311-
let testdataDir := srcFile.parent.get! / "testdata"
312-
let ionBytes ← IO.FS.readBinFile (testdataDir / "comprehensive.ion")
310+
let ionBytes ← IO.FS.readBinFile "StrataTest/DDM/Integration/Java/testdata/comprehensive.ion"
313311
match Strata.Program.fileFromIon dm "Simple" ionBytes with
314312
| .error e => Lean.logError s!"Roundtrip test failed: {e}"
315313
| .ok prog =>
@@ -330,9 +328,7 @@ elab "#testRoundtripFiles" : command => do
330328
let some simple := state.loaded.dialects["Simple"]?
331329
| Lean.logError "Simple dialect not found"; return
332330
let dm := Strata.DialectMap.ofList! [Strata.initDialect, simple]
333-
let srcFile := System.FilePath.mk (← Lean.getFileName)
334-
let testdataDir := srcFile.parent.get! / "testdata"
335-
let ionBytes ← IO.FS.readBinFile (testdataDir / "comprehensive-files.ion")
331+
let ionBytes ← IO.FS.readBinFile "StrataTest/DDM/Integration/Java/testdata/comprehensive-files.ion"
336332
match Strata.Program.filesFromIon dm ionBytes with
337333
| .error e => Lean.logError s!"Roundtrip files test failed: {e}"
338334
| .ok files =>

0 commit comments

Comments
 (0)