Run Selenium Tests #3
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: Run Selenium Tests | |
on: | |
workflow_dispatch: # This allows manual triggering from GitHub Actions UI | |
jobs: | |
selenium-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Chrome | |
run: | | |
sudo apt update | |
sudo apt install -y wget | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo apt install -y ./google-chrome-stable_current_amd64.deb | |
- name: Install dependencies | |
run: | | |
pip install selenium webdriver-manager | |
- name: Run Selenium script | |
run: python main.py |