Skip to content

Commit

Permalink
Update version of selenium server used for testing (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler authored Jun 10, 2024
1 parent 8c24435 commit 41eadca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install selenium server
run: |
wget https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar -O selenium-server.jar
wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.3.0/selenium-server-4.3.0.jar -O selenium-server.jar
# Lint before running unit tests
- name: Run lint
Expand All @@ -64,8 +64,11 @@ jobs:
- name: Run tests
run: |
echo "Start Selenium Server"
xvfb-run java -jar selenium-server.jar > /dev/null 2>&1 & sleep 6 & tox -e ${{matrix.PY_VER}}-standard
xvfb-run java -jar selenium-server.jar > /dev/null 2>&1 & sleep 6 & tox -e ${{matrix.PY_VER}}-xdist
xvfb-run java -jar selenium-server.jar standalone > selenium-server.log 2>&1 &
timeout 60 bash -c 'while ! wget -O /dev/null -T 1 http://localhost:4444/readyz; do echo waiting for Selenium Server; sleep 1; done' || (cat selenium-server.log && exit 2)
echo "Selenium server is ready, running tests"
tox -e ${{matrix.PY_VER}}-standard
tox -e ${{matrix.PY_VER}}-xdist
- name: Archive artifacts
uses: actions/upload-artifact@v3
Expand All @@ -75,7 +78,8 @@ jobs:
path: logs/**/*

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 41eadca

Please sign in to comment.