Skip to content

Commit

Permalink
Adding .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayima Okeeva committed Dec 3, 2024
1 parent 0c575d3 commit 8d92d32
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/selenium-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Selenium Python Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
- test-branch

jobs:
test:
runs-on: ubuntu-latest

services:
selenium:
image: selenium/standalone-chrome: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
run: |
pytest --headless --base-url http://localhost:4444

0 comments on commit 8d92d32

Please sign in to comment.