Skip to content

Commit

Permalink
Split selenium tests to improve CI performance (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jan 25, 2023
1 parent cc74623 commit b95aa17
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: |
tox -e tests -- -n 4 tests/test_flaskclient.py tests/test_zopetestbrowser.py tests/test_djangoclient.py tests/test_is_element_present_nojs.py
selenium:
selenium_remote:
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -97,6 +97,33 @@ jobs:
echo "Selenium server is ready, running tests"
tox -e tests_selenium -- tests/test_webdriver_remote.py
selenium:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- PY_VER: py37
python-version: 3.7
- PY_VER: py38
python-version: 3.8
- PY_VER: py39
python-version: 3.9
- PY_VER: py310
python-version: "3.10"
- PY_VER: py311
python-version: "3.11"

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}

- name: Install test dependencies
run: pip install tox

- name: Run Selenium tests
run: |
tox -e tests_selenium -- -n 4 tests/test_element_is_visible.py tests/test_screenshot.py tests/test_shadow_root.py tests/test_mouse_interaction.py tests/test_async_finder.py tests/test_html_snapshot.py tests/test_iframes.py tests/test_popups.py tests/test_webdriver.py tests/test_webdriver_firefox.py tests/test_webdriver_chrome.py;
1 change: 0 additions & 1 deletion requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ sphinx-rtd-theme>=0.1.8
cssselect>=1.0.3
lxml==4.9.2
zope.testbrowser==5.6.1
msedge-selenium-tools==3.141.4

0 comments on commit b95aa17

Please sign in to comment.