Skip to content

Commit

Permalink
build: replace Devstack with Tutor
Browse files Browse the repository at this point in the history
  • Loading branch information
marslanabdulrauf committed Feb 25, 2025
1 parent 1f0487e commit cd03a05
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 36 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,43 @@ jobs:
- name: Python setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}

- name: tox install
run: pip install tox

- name: Run Tests
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

- name: Upload coverage to CodeCov
if: matrix.python-version == '3.12' && matrix.toxenv == 'py312-django42'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false

- name: Run Integration Tests
- name: Install tutor
run: |
git clone --branch=main https://github.com/overhangio/tutor.git
pip install -e "./tutor"
- name: Set up tutor with edx-platform
run: |
cd ..
git clone https://github.com/openedx/edx-platform
cd edx-platform
tutor mounts add .
tutor images build openedx-dev
tutor dev launch --non-interactive
tutor dev stop
- name: Run Integration Tests
run: |
cd ..
git clone https://github.com/openedx/devstack
cd devstack
sed -i 's/:cached//g' ./docker-compose-host.yml
make dev.clone.https
DEVSTACK_WORKSPACE=$PWD/.. docker compose -f docker-compose.yml -f docker-compose-host.yml run -v $PWD/../edx-sga:/edx-sga lms /edx-sga/run_devstack_integration_tests.sh
DIRECTORY="tutor-main"
DEV="tutor_main_dev"
EDX_WORKSPACE=$PWD/.. docker compose -f /home/runner/.local/share/$DIRECTORY/env/local/docker-compose.yml -f /home/runner/.local/share/$DIRECTORY/env/dev/docker-compose.yml run -v $PWD/../edx-sga:/edx-sga lms /edx-sga/run_edx_integration_tests.sh
- name: Upload coverage to CodeCov
if: matrix.python-version == '3.12' && matrix.toxenv == 'py312-django42'
Expand Down
26 changes: 0 additions & 26 deletions run_devstack_integration_tests.sh

This file was deleted.

0 comments on commit cd03a05

Please sign in to comment.