Skip to content

Commit

Permalink
ci: Update browser installation methods
Browse files Browse the repository at this point in the history
This commit updates the method for installing a headless browser for use
with selenium. Previously, it was installed globally using the
'seleniumbase' tool. This commit updates to first install 'seleniumbase'
into a venv, and then install browsers globally. This prevents
dependency conflicts.
  • Loading branch information
tkw1536 committed Aug 2, 2023
1 parent a938ce4 commit 779286c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,27 @@ jobs:
- name: Install Chrome Webdriver
if: ${{ matrix.browser == 'chrome' }}
run: |
python3 -m venv venv
source venv/bin/activate
pip install seleniumbase
sudo apt-get install -y google-chrome-stable
seleniumbase install chromedriver
pip uninstall -y seleniumbase
deactivate
rm -rf venv
- name: Install Firefox Webdriver
if: ${{ matrix.browser == 'firefox' }}
run: |
python3 -m venv venv
source venv/bin/activate
pip install seleniumbase
sudo apt-get install -y firefox
seleniumbase install geckodriver
pip uninstall -y seleniumbase
seleniumbase install chromedriver
deactivate
rm -rf venv
- name: Run 'poetry install'
run: |
pip install poetry
Expand Down

0 comments on commit 779286c

Please sign in to comment.