Skip to content

Commit cadd1f4

Browse files
committed
use nuget to install chromedriver on windows
1 parent 146a06e commit cadd1f4

File tree

1 file changed

+50
-5
lines changed

1 file changed

+50
-5
lines changed

.github/workflows/test.yml

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ on:
66
- cron: "0 0 * * *"
77

88
jobs:
9-
build:
10-
runs-on: ${{ matrix.os }}
9+
test-on-linux:
10+
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
1313
python-version: [3.7, 3.8, 3.9]
14-
os: [macos-latest, ubuntu-latest, windows-latest]
15-
1614
steps:
1715
- uses: actions/checkout@v2
1816
- uses: nanasess/setup-chromedriver@master
@@ -26,4 +24,51 @@ jobs:
2624
- name: Install Python Dependencies
2725
run: pip install -r requirements/test-run.txt
2826
- name: Run Tests
29-
run: HEADLESS=1 nox
27+
env:
28+
HEADLESS: 1
29+
run: |
30+
pip install --upgrade pip
31+
nox
32+
33+
test-on-macos:
34+
runs-on: macos-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: nanasess/setup-chromedriver@master
38+
- uses: actions/setup-node@v2-beta
39+
with:
40+
node-version: "12"
41+
- name: Use Python 3.9
42+
uses: actions/setup-python@v2
43+
with:
44+
python-version: 3.9
45+
- name: Install Python Dependencies
46+
run: pip install -r requirements/test-run.txt
47+
- name: Run Tests
48+
env:
49+
HEADLESS: 1
50+
run: |
51+
pip install --upgrade pip
52+
nox
53+
54+
test-on-windows:
55+
runs-on: windows-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Setup ChromeDriver
59+
run: nuget install Selenium.WebDriver.ChromeDriver -Version 88.0.4324.9600
60+
- uses: actions/setup-node@v2-beta
61+
with:
62+
node-version: "12"
63+
- name: Use Python 3.9
64+
uses: actions/setup-python@v2
65+
with:
66+
python-version: 3.9
67+
- name: Install Python Dependencies
68+
run: pip install -r requirements/test-run.txt
69+
- name: Run Tests
70+
env:
71+
HEADLESS: 1
72+
run: |
73+
pip install --upgrade pip wheel
74+
nox

0 commit comments

Comments
 (0)