Skip to content

Commit

Permalink
feat: add github action integration (#207)
Browse files Browse the repository at this point in the history
* feat: add github action integration

* fix: quality changes

* feat: add edx_auth_n_v1 backend import

* fix: add migrations
  • Loading branch information
luisfelipec95 authored Jun 12, 2024
1 parent 1d072b5 commit 99d2229
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Tutor Integration Tests
on: [pull_request]

jobs:
integration-test:
name: Tutor Integration Tests
runs-on: ubuntu-latest
strategy:
matrix:
tutor_version: ["<17.0.0", "<18.0.0"]
steps:
- uses: actions/checkout@v4.1.6
with:
path: eox-tenant
- uses: eduNEXT/integration-test-in-tutor@main
with:
tutor_version: ${{ matrix.tutor_version }}
app_name: "eox-tenant"
shell_file_to_run: "eox_tenant/test/tutor/integration.sh"
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions eox_tenant/test/tutor/integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# This script installs the package in the edxapp environment, installs test requirements from Open edX and runs the tests using the Tutor settings.
echo "Install package"
pip install -e /openedx/eox-tenant
python manage.py lms makemigrations
python manage.py lms migrate

echo "Install test-requirements"
make test-requirements

echo "Run tests"
pytest -s --ds=lms.envs.tutor.test /openedx/eox-tenant/eox_tenant/test/tutor
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ def test_current_settings_code_imports(self):
import eox_tenant.edxapp_wrapper.backends.users_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.bearer_authentication_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.edxmako_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.edx_auth_n_v1 # isort:skip
File renamed without changes.

0 comments on commit 99d2229

Please sign in to comment.