Skip to content

selenium-firefox

selenium-firefox #95

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