Nowy workflow, cz5 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Selenium Python CI | |
#chcemy żeby zaczął się po push'u | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
selenium: | |
image: selenium/standalone-chrome:latest | |
ports: | |
- 4444:4444 | |
options: >- | |
--shm-size 2g | |
--health-cmd "curl -sS http://localhost:4444/wd/hub/status || exit 1" | |
--health-timeout 5s | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r wymagania.txt | |
- name: Run tests | |
env: | |
SELENIUM_REMOTE_URL: http://localhost:4444/wd/hub | |
run: | | |
pytest |