@@ -10,13 +10,14 @@ jobs:
10
10
strategy :
11
11
matrix :
12
12
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, 4.18.0
15
+ browser : [firefox, chrome, headlesschrome] # edge
15
16
16
17
steps :
17
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
18
19
- name : Set up Python ${{ matrix.python-version }} with Robot Framework ${{ matrix.rf-version }}
19
- uses : actions/setup-python@v4
20
+ uses : actions/setup-python@v5
20
21
with :
21
22
python-version : ${{ matrix.python-version }}
22
23
- name : Setup Chrome
27
28
- run : |
28
29
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
29
30
${{ steps.setup-chrome.outputs.chrome-path }} --version
31
+ - name : Setup firefox
32
+ id : setup-firefox
33
+ uses : browser-actions/setup-firefox@v1
34
+ with :
35
+ firefox-version : latest
36
+ - run : |
37
+ echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
38
+ ${{ steps.setup-firefox.outputs.firefox-path }} --version
30
39
- name : Start xvfb
31
40
run : |
32
41
export DISPLAY=:99.0
@@ -62,25 +71,14 @@ jobs:
62
71
63
72
# Temporarily ignoring pypy execution
64
73
- name : Run tests with headless Chrome and with PyPy
65
- if : matrix.python-version == 'pypy-3.9'
74
+ if : startsWith( matrix.python-version, 'pypy') == true
66
75
run : |
67
76
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
68
77
69
- - name : Run tests with normal Chrome if CPython
70
- if : matrix.python-version != 'pypy-3.9'
71
- run : |
72
- xvfb-run --auto-servernum python atest/run.py --zip chrome
73
-
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'
77
- run : |
78
- xvfb-run --auto-servernum python atest/run.py --zip headlessfirefox
79
-
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'
78
+ - name : Run tests with ${{ matrix.browser }} if CPython
79
+ if : startsWith( matrix.python-version, 'pypy') == false
82
80
run : |
83
- xvfb-run --auto-servernum python atest/run.py --zip firefox
81
+ xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
84
82
85
83
# - name: Run tests with Selenium Grid
86
84
# if: matrix.python-version == '3.11' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.9'
0 commit comments