forked from SimVascular/svZeroDSolver
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.19 KB
/
gui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This workflow uses Cypress for end-to-end testing of the 0D model GUI.
name: GUI-tests
on: [push, pull_request]
jobs:
cypress-run:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
working-directory: tests/cypress
run: npm install
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Use the Python version compatible with your Flask app
- name: Install Flask dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flask
- name: Start Flask Application
run: |
cd applications/svZeroDGUI
FLASK_APP=app.py flask run --host=0.0.0.0 --port=8902 &
env:
FLASK_ENV: development
- name: Run Cypress tests
uses: cypress-io/github-action@v5
with:
start: npm start
working-directory: tests/cypress