Skip to content

Commit a528ed8

Browse files
committed
chore: implements GitHub Action workflow to run tests
1 parent 5bd6d4e commit a528ed8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/run-tests.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run Tests (parallel)
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
10+
container:
11+
image: python:3.11.7-alpine3.18
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
browser: ['firefox', 'chrome', 'edge']
17+
18+
services:
19+
selenium:
20+
image: selenium/standalone-${{ matrix.browser }}:4.15.0-20231129
21+
options: --shm-size=2gb
22+
env:
23+
SE_NODE_OVERRIDE_MAX_SESSIONS: true
24+
SE_NODE_MAX_SESSIONS: 15
25+
SE_NODE_SESSION_TIMEOUT: 30
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v4
30+
with:
31+
python-version: "3.11.7"
32+
- run: pip install -r requirements-lock.txt
33+
- run: pytest -vv --use-browser remote
34+
env:
35+
SELENIUM_HOST: ${{ matrix.browser }}

0 commit comments

Comments
 (0)