Merge branch 'main' of https://github.com/Voltz-Corp/Eceeltec-G4 #31
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: E2E Tests | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python version | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.12' | |
- name: Create and start virtual environment | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
npm ci | |
cd .. | |
- name: Run local server | |
run: | | |
python manage.py migrate | |
python manage.py runserver & | |
sleep 5 | |
npx cypress run |