Skip to content

Merge pull request #719 from eduNEXT/dmh/update-edx-xblock-scorm #734

Merge pull request #719 from eduNEXT/dmh/update-edx-xblock-scorm

Merge pull request #719 from eduNEXT/dmh/update-edx-xblock-scorm #734

Workflow file for this run

name: CMS
on: push
jobs:
run-tests:
continue-on-error: true
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8']
django-version: ["2.2"]
mongodb-version: ['4.0']
test_module: [
"cms/djangoapps/api/ cms/djangoapps/cms_user_tasks/ cms/djangoapps/course_creators/ cms/djangoapps/export_course_metadata/ cms/djangoapps/maintenance/ cms/djangoapps/models/ cms/djangoapps/pipeline_js/ cms/djangoapps/xblock_config/ cms/envs/ cms/lib/",
"cms/djangoapps/contentstore/",
]
name: ${{ matrix.test_module }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Required System Packages
run: sudo apt-get update && sudo apt-get install libxmlsec1-dev
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install requirements
run: |
pip install --upgrade --force-reinstall -r requirements/pip.txt
pip install --upgrade --force-reinstall -r requirements/edx/testing.txt
pip install --exists-action w -r requirements/edunext/base.txt
pip install "django~=${{ matrix.django-version }}.24"
- name: Run tests
uses: nick-invision/retry@v2
with:
timeout_minutes: 45
max_attempts: 3
retry_on: error
command: pytest ${{ matrix.test_module }}