-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.06 KB
/
selenium-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Run all tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
- test-branch
jobs:
test:
runs-on: ubuntu-latest
services:
selenium:
image: selenium/standalone-firefox:latest
ports:
- 4444:4444
options: >-
--shm-size 2g
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 4: Run pytest tests
- name: Run Selenium tests
env:
SELENIUM_REMOTE_URL: http://localhost:4444/wd/hub
OBI_USERNAME: ${{ secrets.OBI_USERNAME }}
OBI_PASSWORD: ${{ secrets.OBI_PASSWORD }}
BROWSER_NAME: firefox
run: |
pytest tests/test_login.py -sv --headless