-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (28 loc) · 1.13 KB
/
selenium-firefox.yaml
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
name: selenium-firefox
on:
workflow_dispatch:
push:
schedule:
- cron: '30 5 * * *'
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends debian-archive-keyring
sudo rm /etc/apt/sources.list.d/*
echo "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian unstable main" | sudo tee /etc/apt/sources.list.d/sid.list
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y --target-release=unstable python3-selenium firefox
- name: Run Firefox test
run: |
wget "https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz"
tar xf geckodriver-v0.35.0-linux64.tar.gz -C /usr/local/bin
mkdir log
scripts/selenium_test.py --browser firefox-debian --results_dir log --urls_to_test test-cases/urls_to_test.csv
cat log/*/*.html