selenium-firefox #57
This file contains 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: 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 | |
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 |