-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 956 Bytes
/
selenium_test.yaml
File metadata and controls
36 lines (34 loc) · 956 Bytes
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
name: GuideFrame Tests
# Trigger the workflow on push
on: [push]
# All jobs in the workflow
jobs:
selenium-function-test:
runs-on: ubuntu-latest
# steps to run
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v4
# Set up environment
- 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 automation script
- name: Run Automation Test with Virtual Display
run: |
# Start virtual display
export DISPLAY=:99
nohup Xvfb :99 -screen 0 1920x1080x24 &
export PYTHONPATH=$GITHUB_WORKSPACE:$PYTHONPATH
# Run the Selenium script
python3 -m selenium_demos.selenium_automation_tests github