-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add github action integration (#270)
* feat: add github action integration
- Loading branch information
1 parent
201f688
commit b1bc595
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
with: | ||
path: eox-core | ||
- uses: eduNEXT/integration-test-in-tutor@main | ||
with: | ||
tutor_version: ${{ matrix.tutor_version }} | ||
app_name: "eox-core" | ||
shell_file_to_run: "eox_core/tests/tutor/integration.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-core | ||
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-core/eox_core/tests/tutor |