Skip to content

Commit

Permalink
Merge pull request #1889 from yuriverweij/update-CI-firefox
Browse files Browse the repository at this point in the history
Update CI runs to inlcude firefox
  • Loading branch information
emanlove authored Mar 9, 2024
2 parents b12da89 + dbab5ad commit 2f3037e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
strategy:
matrix:
python-version: [3.8, 3.11] # 3.12, pypy-3.9
rf-version: [5.0.1, 6.1.1, 7.0b1]
selenium-version: [4.14.0, 4.15.2, 4.16.0]
rf-version: [5.0.1, 6.1.1, 7.0]
selenium-version: [4.14.0, 4.15.2, 4.16.0] #4.17.0, 4.18.0
browser: [firefox, chrome, headlesschrome] #edge

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} with Robot Framework ${{ matrix.rf-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Chrome
Expand All @@ -27,6 +28,14 @@ jobs:
- run: |
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
${{ steps.setup-chrome.outputs.chrome-path }} --version
- name: Setup firefox
id: setup-firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: latest
- run: |
echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
${{ steps.setup-firefox.outputs.firefox-path }} --version
- name: Start xvfb
run: |
export DISPLAY=:99.0
Expand Down Expand Up @@ -62,25 +71,14 @@ jobs:
# Temporarily ignoring pypy execution
- name: Run tests with headless Chrome and with PyPy
if: matrix.python-version == 'pypy-3.9'
if: startsWith( matrix.python-version, 'pypy') == true
run: |
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
- name: Run tests with normal Chrome if CPython
if: matrix.python-version != 'pypy-3.9'
run: |
xvfb-run --auto-servernum python atest/run.py --zip chrome
# Recognize for the moment this will NOT run as we aren't using Python 3.9
- name: Run tests with headless Firefox with Python 3.9 and RF 4.1.3
if: matrix.python-version == '3.9' && matrix.rf-version == '4.1.3'
run: |
xvfb-run --auto-servernum python atest/run.py --zip headlessfirefox
- name: Run tests with normal Firefox with Python 3.9 and RF != 4.1.3
if: matrix.python-version == '3.9' && matrix.rf-version != '4.1.3'
- name: Run tests with ${{ matrix.browser }} if CPython
if: startsWith( matrix.python-version, 'pypy') == false
run: |
xvfb-run --auto-servernum python atest/run.py --zip firefox
xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
# - name: Run tests with Selenium Grid
# if: matrix.python-version == '3.11' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.9'
Expand Down
5 changes: 3 additions & 2 deletions atest/acceptance/keywords/cookies.robot
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ Add Cookie When Expiry Is Human Readable Data&Time
Delete Cookie
[Tags] Known Issue Safari
Delete Cookie test
${cookies} = Get Cookies
Should Be Equal ${cookies} far_future=timemachine; another=value
${cookies} = Get Cookies as_dict=True
${expected_cookies} Create Dictionary far_future=timemachine another=value
Dictionaries Should Be Equal ${cookies} ${expected_cookies}

Non-existent Cookie
Run Keyword And Expect Error
Expand Down

0 comments on commit 2f3037e

Please sign in to comment.