Skip to content

Commit fcaf8c2

Browse files
Yuri VerweijYuri Verweij
authored andcommitted
Updated versions, added firefox installation and enabled the tests for firefox
1 parent b12da89 commit fcaf8c2

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version: [3.8, 3.11] # 3.12, pypy-3.9
13-
rf-version: [5.0.1, 6.1.1, 7.0b1]
14-
selenium-version: [4.14.0, 4.15.2, 4.16.0]
13+
rf-version: [5.0.1, 6.1.1, 7.0]
14+
selenium-version: [4.14.0, 4.15.2, 4.16.0, 4.17.0]
1515

1616
steps:
1717
- uses: actions/checkout@v3
@@ -27,6 +27,14 @@ jobs:
2727
- run: |
2828
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
2929
${{ steps.setup-chrome.outputs.chrome-path }} --version
30+
- name: Setup firefox
31+
id: setup-firefox
32+
uses: browser-actions/setup-firefox@v1
33+
with:
34+
firefox-version: latest
35+
- run: |
36+
echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
37+
${{ steps.setup-firefox.outputs.firefox-path }} --version
3038
- name: Start xvfb
3139
run: |
3240
export DISPLAY=:99.0
@@ -62,23 +70,22 @@ jobs:
6270
6371
# Temporarily ignoring pypy execution
6472
- name: Run tests with headless Chrome and with PyPy
65-
if: matrix.python-version == 'pypy-3.9'
73+
if: startsWith( matrix.python-version, 'pypy') == true
6674
run: |
6775
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
6876
6977
- name: Run tests with normal Chrome if CPython
70-
if: matrix.python-version != 'pypy-3.9'
78+
if: startsWith( matrix.python-version, 'pypy') == false
7179
run: |
7280
xvfb-run --auto-servernum python atest/run.py --zip chrome
7381
74-
# Recognize for the moment this will NOT run as we aren't using Python 3.9
75-
- name: Run tests with headless Firefox with Python 3.9 and RF 4.1.3
76-
if: matrix.python-version == '3.9' && matrix.rf-version == '4.1.3'
82+
- name: Run tests with headless Chrome if CPython
83+
if: startsWith( matrix.python-version, 'pypy') == false
7784
run: |
78-
xvfb-run --auto-servernum python atest/run.py --zip headlessfirefox
85+
xvfb-run --auto-servernum python atest/run.py --zip headlesschrome
7986
80-
- name: Run tests with normal Firefox with Python 3.9 and RF != 4.1.3
81-
if: matrix.python-version == '3.9' && matrix.rf-version != '4.1.3'
87+
- name: Run tests with Firefox if Cpython
88+
if: startsWith( matrix.python-version, 'pypy') == false
8289
run: |
8390
xvfb-run --auto-servernum python atest/run.py --zip firefox
8491

0 commit comments

Comments
 (0)