-
Notifications
You must be signed in to change notification settings - Fork 34
32 lines (32 loc) · 964 Bytes
/
e2e.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
name: Test-e2e
on: [push]
jobs:
build:
name: Test-e2e
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.11.4'
cache: 'pip'
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install python dependencies
run: sudo apt-get update && sudo apt-get install -y python3-setuptools python3-pip chromium-browser libgbm1 && make install-deps
- name: DB setup
run: |
cp cres/db.sqlite standards_cache.sqlite
make migrate-upgrade
- name: Run app and e2e tests
run: |
yarn build
[ -d "./venv" ] && . ./venv/bin/activate
export FLASK_APP=./cre.py
export FLASK_CONFIG=development
FLASK_CONFIG=development flask run &
sleep 20s
yarn test:e2e