refactor!: delete common/lib and related usages
This commit is contained in:
3
.github/CODEOWNERS
vendored
3
.github/CODEOWNERS
vendored
@@ -17,9 +17,6 @@ openedx/features/course_experience/
|
||||
xmodule/
|
||||
|
||||
# Core Extensions
|
||||
common/lib/xmodule/xmodule/capa_module.py
|
||||
common/lib/xmodule/xmodule/html_module.py
|
||||
common/lib/xmodule/xmodule/video_module
|
||||
lms/djangoapps/discussion/
|
||||
lms/djangoapps/edxnotes
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
echo "root_cms_unit_tests_count=$(pytest --collect-only --ds=cms.envs.test cms/ -q | head -n -2 | wc -l)" >> $GITHUB_ENV
|
||||
echo "root_lms_unit_tests_count=$(pytest --collect-only --ds=lms.envs.test lms/ openedx/ common/djangoapps/ common/lib/ xmodule/ -q | head -n -2 | wc -l)" >> $GITHUB_ENV
|
||||
echo "root_lms_unit_tests_count=$(pytest --collect-only --ds=lms.envs.test lms/ openedx/ common/djangoapps/ xmodule/ -q | head -n -2 | wc -l)" >> $GITHUB_ENV
|
||||
|
||||
- name: get GHA unit test paths
|
||||
shell: bash
|
||||
|
||||
2
.github/workflows/ci-static-analysis.yml
vendored
2
.github/workflows/ci-static-analysis.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-pip-
|
||||
|
||||
- name: Install python dependencies
|
||||
run: pip install -r requirements/edx/development.txt
|
||||
run: make dev-requirements
|
||||
|
||||
- name: Static code analysis
|
||||
run: make check-types
|
||||
|
||||
2
.github/workflows/docs-build-check.yml
vendored
2
.github/workflows/docs-build-check.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-pip-
|
||||
|
||||
- name: Install python dependencies
|
||||
run: pip install -r requirements/edx/development.txt
|
||||
run: make dev-requirements
|
||||
|
||||
- name: Install docs requirements
|
||||
run: pip install -r requirements/edx/doc.txt
|
||||
|
||||
4
.github/workflows/js-tests.yml
vendored
4
.github/workflows/js-tests.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
|
||||
- name: Setup npm
|
||||
run: npm i -g npm@8.5.x
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
- name: Install Required Python Dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/base.txt
|
||||
make base-requirements
|
||||
|
||||
- uses: c-hive/gha-npm-cache@v1
|
||||
- name: Run JS Tests
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/development.txt
|
||||
make dev-requirements
|
||||
pip uninstall -y mysqlclient
|
||||
pip install --no-binary mysqlclient mysqlclient
|
||||
pip uninstall -y xmlsec
|
||||
|
||||
2
.github/workflows/migrations-check.yml
vendored
2
.github/workflows/migrations-check.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/development.txt
|
||||
make dev-requirements
|
||||
pip uninstall -y mysqlclient
|
||||
pip install --no-binary mysqlclient mysqlclient
|
||||
pip uninstall -y xmlsec
|
||||
|
||||
2
.github/workflows/pylint-checks.yml
vendored
2
.github/workflows/pylint-checks.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
||||
- name: Install Required Python Dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/development.txt --src ${{ runner.temp }}
|
||||
make dev-requirements
|
||||
pip uninstall -y mysqlclient
|
||||
pip install --no-binary mysqlclient mysqlclient
|
||||
|
||||
|
||||
6
.github/workflows/quality-checks.yml
vendored
6
.github/workflows/quality-checks.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
os: [ ubuntu-20.04 ]
|
||||
python-version: [ 3.8 ]
|
||||
node-version: [ 16 ]
|
||||
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
@@ -60,7 +60,9 @@ jobs:
|
||||
PIP_SRC_DIR: ${{ runner.temp }}
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/testing.txt -r requirements/edx/django.txt --src $PIP_SRC_DIR
|
||||
pip install -r requirements/edx/testing.txt --src $PIP_SRC_DIR
|
||||
pip install -e . --src $PIP_SRC_DIR
|
||||
pip install -r requirements/edx/django.txt
|
||||
|
||||
- name: Run Quality Tests
|
||||
env:
|
||||
|
||||
2
.github/workflows/static-assets-check.yml
vendored
2
.github/workflows/static-assets-check.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
- name: Install Required Python Dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/base.txt
|
||||
make base-requirements
|
||||
|
||||
- name: Initiate Mongo DB Service
|
||||
run: sudo systemctl start mongod
|
||||
|
||||
4
.github/workflows/unit-tests-gh-hosted.yml
vendored
4
.github/workflows/unit-tests-gh-hosted.yml
vendored
@@ -67,6 +67,8 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/development.txt --src ${{ runner.temp }}
|
||||
# edx-platform installs some Python projects from within the edx-platform repo itself.
|
||||
pip install -e .
|
||||
pip install "django~=${{ matrix.django-version }}.0"
|
||||
|
||||
- name: Setup and run tests
|
||||
@@ -106,7 +108,7 @@ jobs:
|
||||
- name: Install Required Python Dependencies
|
||||
run: |
|
||||
pip install -r requirements/pip.txt
|
||||
pip install -r requirements/edx/development.txt --src ${{ runner.temp }}
|
||||
make dev-requirements
|
||||
pip install "django~=${{ matrix.django-version }}.0"
|
||||
|
||||
- name: verify unit tests count
|
||||
|
||||
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
- name: install requirements
|
||||
run: |
|
||||
sudo pip install -r requirements/pip.txt
|
||||
sudo pip install --exists-action='w' -r requirements/edx/testing.txt
|
||||
sudo make test-requirements
|
||||
if [[ "${{ matrix.django-version }}" == "pinned" ]]; then
|
||||
sudo pip install -r requirements/edx/django.txt
|
||||
else
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: install requirements
|
||||
run: |
|
||||
sudo pip install -r requirements/pip.txt
|
||||
sudo pip install --exists-action='w' -r requirements/edx/testing.txt
|
||||
sudo make test-requirements
|
||||
|
||||
- name: verify unit tests count
|
||||
uses: ./.github/actions/verify-tests-count
|
||||
|
||||
Reference in New Issue
Block a user