Skip to content

Merge pull request #7 from BlueBrain/feature2 #6

Merge pull request #7 from BlueBrain/feature2

Merge pull request #7 from BlueBrain/feature2 #6

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