Update README.md #20
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: Flask and Selenium Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
services: | |
selenium: | |
image: selenium/standalone-chrome:latest | |
ports: | |
- 4444:4444 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Start Flask App | |
run: | | |
gunicorn -w 4 -b 0.0.0.0:8001 models/backend_file:app | |
- name: Wait for Flask to start | |
run: | | |
sleep 5 | |
- name: Run Selenium Tests | |
run: | | |
python test/test.py |