-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (48 loc) · 1.4 KB
/
main.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
50
51
52
53
54
55
name: Cypress Tests using Cypress Docker Image
on:
push:
branches: [main]
pull_request:
branches:
- "**"
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout xblock-sdk repo
uses: actions/checkout@v2
with:
repository: openedx/xblock-sdk
path: xblock-sdk
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: "3.12"
- name: install dependencies of xblock-sdk
working-directory: xblock-sdk
run: |
python3 -m pip install xblock-utils==4.0.0
python3 -m pip install -qr requirements/dev.txt
python3 -m pip install -qr requirements/local.txt
- name: setup h5p xblock
run: |
python3 -m pip install .
- name: Run xblock workbench
working-directory: xblock-sdk
env:
EXCLUDE_SAMPLE_XBLOCKS: yes
run: |
python3 manage.py migrate --noinput
python3 ./manage.py runserver &
- name: Sleep for 5s to wait for django server getting up and running
uses: juliangruber/sleep-action@v1
with:
time: 5s
- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: chrome
working-directory: tests/cypress