Merge pull request #246 from wanderlust-group-project-1/db_merge #404
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: Web test with Selenium | |
on: | |
push: | |
branches: [ dev, test-workflow ] | |
pull_request: | |
branches: [ dev, test-workflow ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# setup site using docker-compose | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- run: cp example.env .env | |
- run: cp database/example.env database/.env | |
- name: Run docker compose | |
run: docker compose up -d | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install selenium | |
- name: Run test | |
run: | | |
python test.py | |