-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.65 KB
/
test.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
56
57
58
59
name: Tutor Setup with Plugin Verification
on: [push]
jobs:
setup-tutor:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
# - name: Set up Python 3.11
# uses: actions/setup-python@v2
# with:
# python-version: '3.11'
- name: Install Tutor
run: |
python3 -m pip install --upgrade pip
python3 -m pip install tutor
# - name: Add extra LMS requirements
# run: |
# # Create a custom Tutor configuration to add extra pip requirements for the LMS
# tutor config save --set OPENEDX_EXTRA_PIP_REQUIREMENTS="eox-core\neox-tenant"
# - name: Rebuild the LMS image to include the extra requirements
# run: |
# tutor images build openedx
# - name: Configure LMS to be externally accessible
# run: |
# tutor config save --set LMS_HOST=0.0.0.0
- name: Start Tutor
run: |
tutor dev launch -I
- name: Install additional LMS requirements
run: |
tutor local run lms pip install eox-core eox-tenant
tutor local restart lms
- name: Wait for services to be up
run: |
sleep 60 # Adjust the sleep time as necessary for services to be fully ready
- name: Get LMS_HOST value
id: lms_host
run: |
echo "LMS_HOST=$(tutor config printvalue LMS_HOST)" >> $GITHUB_ENV
- name: Check LMS logs
run: |
tutor local logs lms --tail=100 # Retrieve the last 100 lines of LMS logs
- name: Check LMS heartbeat endpoint
run: |
curl -f http://$LMS_HOST:8000/heartbeat