Skip to content

Commit 6226b82

Browse files
committed
Add a myst-build job to ci workflows.
- Fail if tracebacks found in myst execution log. - Preserve log and err on traceback.
1 parent 9295a91 commit 6226b82

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,19 @@ jobs:
100100

101101
- name: Build static site
102102
run: pixi run build
103+
104+
myst_build:
105+
name: Build and execute static site with myst
106+
runs-on: ubuntu-latest
107+
steps:
108+
- uses: actions/checkout@v4
109+
- name: Setup environment
110+
run: pip install -r requirements.txt
111+
- name: Build site with execution
112+
run: |
113+
myst build --execute 2>&1 |tee /tmp/mystbuild.log
114+
if grep -q "Traceback .most recent call last." /tmp/mystbuild.log; then
115+
exit 1;
116+
else
117+
exit 0;
118+
fi

0 commit comments

Comments
 (0)