conditionals in runner scripts
This commit is contained in:
parent
c33ed44780
commit
3413629d6c
@ -9,7 +9,7 @@ jobs:
|
||||
matrix:
|
||||
python-version: [ "3.12" ]
|
||||
env:
|
||||
EDGEDRIVER_VERSION: 126.0.2592.113
|
||||
EDGEDRIVER_VERSION: 127.0.2651.31
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
@ -22,11 +22,19 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
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: |
|
||||
wget https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip
|
||||
unzip edgedriver_win64.zip
|
||||
mv msedgedriver drivers
|
||||
mv msedgedriver.exe drivers
|
||||
|
||||
- name: Run the pytests
|
||||
run: pytest -c pytest.ini -m edge
|
||||
|
Loading…
Reference in New Issue
Block a user