-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.23 KB
/
py-script.yml
File metadata and controls
54 lines (45 loc) · 1.23 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Golf Game Automated Testing
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libxss1 \
libappindicator3-1 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libgconf-2-4 \
libx11-xcb1 \
libxcomposite1 \
libxrandr2 \
libxdamage1 \
libxext6 \
fonts-liberation \
libgbm1 \
xdg-utils \
wget
- name: Install Chrome
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt-get -f install -y
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install selenium webdriver-manager requests
- name: Set up Display
run: echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Run pytest
run: |
cd minigolf/tests
python pytest.py