From df416aedf499732d2633304bd0e00a11596a7f59 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Mon, 30 Sep 2024 01:04:47 +0530 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 1f43475..58cd764 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,21 +19,11 @@ jobs: with: python-version: '3.9' - - name: Install Chrome - run: | - wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - - echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list - sudo apt-get update - sudo apt-get install -y google-chrome-stable - - - name: Install ChromeDriver - run: | - CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+') - CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}" || echo "chromedriver not found") - wget -N "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" - unzip chromedriver_linux64.zip - sudo mv chromedriver /usr/local/bin/chromedriver - sudo chmod +x /usr/local/bin/chromedriver + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1 + with: + install-chromedriver: true # Install ChromeDriver + install-dependencies: true # Install necessary dependencies for Chrome - name: Install dependencies run: |