Skip to content

Commit

Permalink
feat: using a new workflow for nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemontoya committed Mar 8, 2024
1 parent fcab6f4 commit 2d50c75
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ jobs:
with:
path: eox-tenant

- name: Prepare Tutor & launch
- name: Get Tutor
run: |
pip install "tutor${{ matrix.tutor_version }}"
- name: Prepare Tutor & launch
run: |
TUTOR_ROOT="$(pwd)" tutor --version
TUTOR_ROOT="$(pwd)" tutor config save
TUTOR_ROOT="$(pwd)" tutor mounts add lms,cms,lms-worker,cms-worker:$(pwd)/eox-tenant:/openedx/eox-tenant
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/integration_tutor_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Integration Tests with openedx.master

on:
push:
branches:
- 'fmo/**'

jobs:
edx-platform-integration-test:
name: Integration with Tutor nightly
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: eox-tenant

- name: Get Tutor
run: |
git clone --branch=nightly --depth=1 https://github.com/overhangio/tutor.git
pip install -e "./tutor[full]"
- name: Prepare Tutor & launch
run: |
TUTOR_ROOT="$(pwd)" tutor --version
TUTOR_ROOT="$(pwd)" tutor config save
TUTOR_ROOT="$(pwd)" tutor mounts add lms,cms,lms-worker,cms-worker:$(pwd)/eox-tenant:/openedx/eox-tenant
chmod 777 . -R
TUTOR_ROOT="$(pwd)" tutor local launch -I
- name: Run integration tests in lms
run: |
TUTOR_ROOT="$(pwd)" tutor local run lms bash /openedx/eox-tenant/eox_tenant/test/tutor/integration.sh

0 comments on commit 2d50c75

Please sign in to comment.