fix(GUIDEFRAME-51): adjusting paths #83
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GuideFrame Video Render | |
| # Trigger the workflow on push | |
| on: [push] | |
| # All jobs in the workflow | |
| jobs: | |
| tutors-test: | |
| 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 tutors_test.py github | |
| # Upload the screen recording as an artifact | |
| - name: Upload screen recording as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tutors-test | |
| path: ./tutors_test*.mp4 |