diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a8d5a6..ee3b8ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,15 +33,15 @@ jobs: - name: Install Firefox Webdriver if: ${{ matrix.browser == 'firefox' }} run: | - # Python by default installs from snap. + # Ubuntu's default Firefox package installs from snap. # This isn't supported by geckodriver. # # The clean solution would be to use a sane distribution # that doesn't use snap-based firefox by default. # But GitHub Actions doesn't offer this. - sudo add-apt-repository ppa:mozillateam/ppa - sudo apt-get -qq -y update + sudo add-apt-repository --yes --no-update ppa:mozillateam/ppa + sudo apt-get -qq -y -o Acquire::Retries=3 -o APT::Update::Error-Mode=any update echo ' Package: * @@ -49,13 +49,11 @@ jobs: Pin-Priority: 1001 Package: firefox - Pin: version 1:1snap1-0ubuntu2 + Pin: version 1:1snap* Pin-Priority: -1 ' | sudo tee /etc/apt/preferences.d/mozilla-firefox > /dev/null sudo apt-get -y install firefox - sudo apt-get install -y firefox - poetry run seleniumbase install geckodriver diff --git a/.gitignore b/.gitignore index 4b7b50c..d4c2599 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ webpack-stats.json # pytest .pytest_cache/ +downloaded_files/ # Byte-compiled / optimized / DLL files __pycache__/