2025-02-09 18:48:51 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2025-02-09 19:15:16 +01:00
|
|
|
- "main"
|
2025-02-09 18:20:23 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2025-02-09 18:43:45 +01:00
|
|
|
runs-on: self-hosted
|
2025-02-09 18:20:23 +01:00
|
|
|
steps:
|
2025-02-09 19:06:08 +01:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
2025-02-09 18:58:40 +01:00
|
|
|
- name: Initialize virtual environment
|
|
|
|
run: /usr/bin/python -m venv .env
|
|
|
|
- name: Install dependencies
|
2025-02-09 22:36:53 +01:00
|
|
|
run: ./.env/bin/pip install mystmd jupyterlab jupyterlab_myst ipykernel altair pandas
|
2025-02-09 18:58:40 +01:00
|
|
|
- name: Build static HTML
|
2025-02-09 22:29:56 +01:00
|
|
|
run: ./.env/bin/myst build --execute --html
|
2025-02-09 19:10:35 +01:00
|
|
|
- name: Copy files
|
|
|
|
run: |
|
|
|
|
rm -rf /data/srv/forgejo-runner/cours4.0
|
|
|
|
cp -r _build/html /data/srv/forgejo-runner/cours4.0
|