don't use the debian repositories
Some checks failed
ChromeTests / build (3.12) (push) Failing after 18s
EdgeTests / build (3.12) (push) Successful in 1m3s
Pylint / build (3.12) (push) Successful in 13s

This commit is contained in:
Greg Gauthier 2024-07-23 21:04:51 +01:00
parent 035db22d63
commit eb580220a1
2 changed files with 9 additions and 11 deletions

View File

@ -9,7 +9,7 @@ jobs:
matrix: matrix:
python-version: [ "3.12" ] python-version: [ "3.12" ]
env: env:
EDGEDRIVER_VERSION: 126.0.2592.102 CHROMEDRIVER_VERSION: 114.0.5735.90
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -23,17 +23,17 @@ jobs:
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
mkdir drivers mkdir drivers
- name: Prep the Debian repositories
run: |
apt update -y
apt upgrade -y
- name: Install Chrome and Chromedriver for Linux - name: Install Chrome and Chromedriver for Linux
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
apt install -y chromium-browser chromium-driver wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
chromium-browser --version dpkg -i google-chrome-stable_current_amd64.deb
chromium-driver --version apt install -f
google-chrome --version
wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
unzip
mv chromedriver drivers
- name: Run the pytests - name: Run the pytests
run: pytest -c pytest.ini -m chrome run: pytest -c pytest.ini -m chrome

View File

@ -27,8 +27,6 @@ jobs:
run: | run: |
apt update -y apt update -y
apt upgrade -y apt upgrade -y
apt install -y chromium-browser
apt install -y firefox
- name: Install Edge and EdgeDriver for Linux - name: Install Edge and EdgeDriver for Linux
if: runner.os == 'Linux' if: runner.os == 'Linux'