Skip to content

Commit 68adb70

Browse files
rossbarbsipocz
authored andcommitted
Add a myst-build job to ci workflows.
- Fail if tracebacks found in myst execution log. - Preserve log and err on traceback.
1 parent 68a8529 commit 68adb70

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
- name: Build static site
102102
run: pixi run build
103103

104+
104105
pixi_build_wasm:
105106
name: Build jupyterlite site with pixi
106107
runs-on: ubuntu-latest
@@ -112,3 +113,19 @@ jobs:
112113

113114
- name: Build jupyterlite site
114115
run: pixi run build_wasm
116+
117+
myst_build:
118+
name: Build and execute static site with myst
119+
runs-on: ubuntu-latest
120+
steps:
121+
- uses: actions/checkout@v4
122+
- name: Setup environment
123+
run: pip install -r requirements.txt
124+
- name: Build site with execution
125+
run: |
126+
myst build --execute 2>&1 |tee /tmp/mystbuild.log
127+
if grep -q "Traceback .most recent call last." /tmp/mystbuild.log; then
128+
exit 1;
129+
else
130+
exit 0;
131+
fi

0 commit comments

Comments
 (0)