Skip to content

Merge pull request #46 from chipspeak/GUIDEFRAME-59 #107

Merge pull request #46 from chipspeak/GUIDEFRAME-59

Merge pull request #46 from chipspeak/GUIDEFRAME-59 #107

Workflow file for this run

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