@@ -37,26 +37,42 @@ concurrency:
3737
3838jobs :
3939 build-and-deploy :
40- runs-on : ubuntu-latest
40+ runs-on : self-hosted
4141 steps :
4242 - name : Checkout repository
4343 uses : actions/checkout@v4
44- - uses : actions/setup-node@v4
4544 with :
46- node-version : 24
47- - name : Install MyST Markdown
48- run : npm install -g mystmd
45+ clean : true
46+ - name : Clean up previous pixi installation
47+ run : |
48+ rm -rf /containers/github-actions/.pixi || true
49+ - name : Setup pixi
50+ uses : prefix-dev/setup-pixi@v0.8.1
51+ with :
52+ pixi-version : latest
53+ cache : true
54+ - name : Setup dependencies
55+ run : |
56+ pixi install
4957 - name : Install requirements.txt
50- run : " if [ -f requirements.txt ]; then pip install -r requirements.txt; fi"
58+ run : |
59+ if [ -f requirements.txt ]; then
60+ packages=$(grep -v '^#' requirements.txt)
61+ pixi add --pypi $packages
62+ fi
63+ - name : Install MyST Markdown
64+ run : |
65+ pixi run npm install -g mystmd
5166 - name : Build HTML Assets
52- # run: (cd notebooks; myst build --execute --html)
53- run : export PYTHONPATH=$(pwd)/modules; myst build --execute --html
67+ run : |
68+ export PYTHONPATH=$(pwd)/modules
69+ pixi run myst build --execute --html
5470 - name : Setup Pages
5571 uses : actions/configure-pages@v3
5672 - name : Upload artifact
5773 uses : actions/upload-pages-artifact@v3
5874 with :
59- path : ' ./notebooks/ _build/html'
75+ path : ' ./_build/html'
6076 - name : Deploy to GitHub Pages
6177 id : deployment
6278 uses : actions/deploy-pages@v4
0 commit comments