conditionals in runner scripts
Some checks failed
Execute / build (3.12) (push) Failing after 11s
Pylint / build (3.12) (push) Failing after 11s

This commit is contained in:
Greg Gauthier 2024-07-23 18:22:11 +01:00
parent c33ed44780
commit 3413629d6c

View File

@ -9,7 +9,7 @@ jobs:
matrix: matrix:
python-version: [ "3.12" ] python-version: [ "3.12" ]
env: env:
EDGEDRIVER_VERSION: 126.0.2592.113 EDGEDRIVER_VERSION: 127.0.2651.31
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -22,11 +22,19 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
- name: Collect browser drivers - name: EdgeDriver for Linux
if: runner.os == 'Linux'
run: |
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_linux64.zip
unzip edgedriver_linux64.zip
mv msedgedriver drivers
- name: EdgeDriver for Windows
if: runner.os == 'Windows'
run: | run: |
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip
unzip edgedriver_win64.zip unzip edgedriver_win64.zip
mv msedgedriver drivers mv msedgedriver.exe drivers
- name: Run the pytests - name: Run the pytests
run: pytest -c pytest.ini -m edge run: pytest -c pytest.ini -m edge