Skip to content

Commit

Permalink
feat: add github action integration
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed May 30, 2024
1 parent e2ad27b commit 11ca919
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Integration
on: [pull_request]

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

# Install the package in the edxapp env
echo "Install package"
pip install -e ../eox-tenant

# Install test requirements from openedx
echo "Install test-requirements"
make test-requirements

# Running the tests using the tutor settings
echo "Run tests"
pytest -s --ds=lms.envs.tutor.test /openedx/eox-tenant/eox_tenant/test/tutor

0 comments on commit 11ca919

Please sign in to comment.