|
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] |
15 | 15 |
|
16 | 16 | steps:
|
17 | 17 | - uses: actions/checkout@v3
|
|
27 | 27 | - run: |
|
28 | 28 | echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
|
29 | 29 | ${{ 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 |
30 | 38 | - name: Start xvfb
|
31 | 39 | run: |
|
32 | 40 | export DISPLAY=:99.0
|
@@ -62,23 +70,22 @@ jobs:
|
62 | 70 |
|
63 | 71 | # Temporarily ignoring pypy execution
|
64 | 72 | - 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 |
66 | 74 | run: |
|
67 | 75 | xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
|
68 | 76 |
|
69 | 77 | - name: Run tests with normal Chrome if CPython
|
70 |
| - if: matrix.python-version != 'pypy-3.9' |
| 78 | + if: startsWith( matrix.python-version, 'pypy') == false |
71 | 79 | run: |
|
72 | 80 | xvfb-run --auto-servernum python atest/run.py --zip chrome
|
73 | 81 |
|
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 |
77 | 84 | run: |
|
78 |
| - xvfb-run --auto-servernum python atest/run.py --zip headlessfirefox |
| 85 | + xvfb-run --auto-servernum python atest/run.py --zip headlesschrome |
79 | 86 |
|
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 |
82 | 89 | run: |
|
83 | 90 | xvfb-run --auto-servernum python atest/run.py --zip firefox
|
84 | 91 |
|
|
0 commit comments