-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (39 loc) · 1.17 KB
/
render.yaml
File metadata and controls
40 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: GuideFrame Video Render
# Trigger the workflow on push
on: [push]
# All jobs in the workflow
jobs:
render-tutors-demo:
runs-on: ubuntu-latest
# steps to run
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
# Set up the environment required by GuideFrame
- name: Set up environment
run: |
sudo apt-get update
sudo apt-get install -y \
ffmpeg \
xvfb \
chromium-driver \
chromium-browser
pip install selenium \
ffmpeg-python \
mutagen \
gTTS
# Run the main script (starting the virtual display first)
- name: Run Main Script with Display started
run: |
# Start Xvfb
export DISPLAY=:99
nohup Xvfb :99 -screen 0 1920x1080x24 &
# Run the Python script
python3 -m guideframe_demos.tutors_demo.guideframe_tutors_demo github
# Upload the screen recording as an artifact
- name: Upload screen recording as artifact
uses: actions/upload-artifact@v4
with:
name: render-tutors-demo
path: guideframe_demos/tutors_demo/guideframe_tutors_demo*.mp4