File tree Expand file tree Collapse file tree 1 file changed +14
-19
lines changed
Expand file tree Collapse file tree 1 file changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -39,35 +39,30 @@ jobs:
3939 build-and-deploy :
4040 runs-on : self-hosted
4141 container :
42- image : ubuntu:latest
42+ image : localhost/python-nodejs
43+ # if needed globally
44+ # env:
45+ # var: value
4346 steps :
4447 - name : Checkout repository
4548 uses : actions/checkout@v5
46- # required by setup-python
47- - name : setup lsb-release
48- run : |
49- apt-get update
50- apt-get install -y lsb-release
51- - name : Setup Python
52- uses : actions/setup-python@v6
53- with :
54- python-version : ' 3.14'
55- cache : ' pip'
56- - name : " Python requirements.txt"
49+ - name : " Python venv & requirements.txt"
5750 run : |
51+ python3 -m venv venv
52+ source venv/bin/activate
5853 if [ -f requirements.txt ]; then
5954 pip install -r requirements.txt
6055 fi
61- - name : Setup nodejs
62- uses : actions/setup-node@v5
63- with :
64- node-version : 24
6556 - name : Install MyST Markdown
6657 run : |
67- npm install -g mystmd
58+ source venv/bin/activate
59+ npm install mystmd
6860 - name : Build HTML Assets
69- # run: (cd notebooks; myst build --execute --html)
70- run : export PYTHONPATH=$(pwd)/modules; myst build --execute --html
61+ # working-directory: notebooks/
62+ env :
63+ PYTHONPATH : $(pwd)/modules
64+ run : |
65+ npx myst build --execute --html
7166 - name : Setup Pages
7267 uses : actions/configure-pages@v5
7368 - name : Upload artifact
You can’t perform that action at this time.
0 commit comments