Skip to content

Commit

Permalink
update to use installation script for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
denisecodes committed May 11, 2024
1 parent 20465fb commit dd37dac
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,9 @@ jobs:
with:
python-version: '3.10'

- name: Install Chrome
- name: Download and Run Chrome Installation Script
run: |
sudo apt-get update
sudo apt-get 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 ChromeDriver
uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '88.0.4324.96'
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
curl -sL https://raw.githubusercontent.com/actions/runner-images/main/images/ubuntu/scripts/build/install-google-chrome.sh | sudo bash
- name: Installed package list
run: apt list --installed
Expand All @@ -44,4 +31,4 @@ jobs:
env:
MY_EMAIL: ${{ secrets.MY_EMAIL }}
MY_PASSWORD: ${{ secrets.MY_PASSWORD }}
run: python main.py
run: python main.py

0 comments on commit dd37dac

Please sign in to comment.