Skip to content

Commit a21babb

Browse files
Yuri VerweijYuri Verweij
authored andcommitted
adding browsers to matrix to shorten duration, but increase amount of runs
1 parent b0ccfc1 commit a21babb

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
python-version: [3.8, 3.11] # 3.12, pypy-3.9
1313
rf-version: [5.0.1, 6.1.1, 7.0]
1414
selenium-version: [4.14.0, 4.15.2, 4.16.0] #4.17.0, 4.18.0
15+
browser: [firefox, chrome, headlesschrome]
1516

1617
steps:
1718
- uses: actions/checkout@v4
@@ -74,20 +75,10 @@ jobs:
7475
run: |
7576
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
7677
77-
- name: Run tests with normal Chrome if CPython
78+
- name: Run tests with ${{ matrix.browser }} if CPython
7879
if: startsWith( matrix.python-version, 'pypy') == false
7980
run: |
80-
xvfb-run --auto-servernum python atest/run.py --zip chrome
81-
82-
- name: Run tests with headless Chrome if CPython
83-
if: startsWith( matrix.python-version, 'pypy') == false
84-
run: |
85-
xvfb-run --auto-servernum python atest/run.py --zip headlesschrome
86-
87-
- name: Run tests with Firefox if Cpython
88-
if: startsWith( matrix.python-version, 'pypy') == false
89-
run: |
90-
xvfb-run --auto-servernum python atest/run.py --zip firefox
81+
xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
9182
9283
# - name: Run tests with Selenium Grid
9384
# if: matrix.python-version == '3.11' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.9'

0 commit comments

Comments
 (0)