@@ -10,13 +10,14 @@ 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, 4.18.0
15+ browser : [firefox, chrome, headlesschrome] # edge
1516
1617 steps :
17- - uses : actions/checkout@v3
18+ - uses : actions/checkout@v4
1819 - 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
2021 with :
2122 python-version : ${{ matrix.python-version }}
2223 - name : Setup Chrome
2728 - run : |
2829 echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
2930 ${{ 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
3039 - name : Start xvfb
3140 run : |
3241 export DISPLAY=:99.0
@@ -62,25 +71,14 @@ jobs:
6271
6372 # Temporarily ignoring pypy execution
6473 - 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
6675 run : |
6776 xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
6877
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
8280 run : |
83- xvfb-run --auto-servernum python atest/run.py --zip firefox
81+ xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
8482
8583 # - name: Run tests with Selenium Grid
8684 # if: matrix.python-version == '3.11' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.9'
0 commit comments