From 84f722122546f44dbbae845b4be7b8b23e4b3d77 Mon Sep 17 00:00:00 2001 From: "M. Zulqarnain" Date: Thu, 1 Jul 2021 13:59:01 +0500 Subject: [PATCH] Remove a11y and migrations test (#28061) --- .../{a11y-test.yml => migrations-check.yml} | 53 +++++-------------- 1 file changed, 13 insertions(+), 40 deletions(-) rename .github/workflows/{a11y-test.yml => migrations-check.yml} (60%) diff --git a/.github/workflows/a11y-test.yml b/.github/workflows/migrations-check.yml similarity index 60% rename from .github/workflows/a11y-test.yml rename to .github/workflows/migrations-check.yml index 85df591c45..d1dc1a74be 100644 --- a/.github/workflows/a11y-test.yml +++ b/.github/workflows/migrations-check.yml @@ -3,42 +3,33 @@ name: CI on: workflow_dispatch: pull_request: - branches: - - master push: branches: - master jobs: run_tests: - name: a11y + name: Migrations Test runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-20.04 ] - node-version: [ 12 ] python-version: [ 3.8 ] steps: - name: Checkout repo uses: actions/checkout@v2 - - name: Setup Gecko Driver - uses: browser-actions/setup-geckodriver@latest - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - - name: Install npm Dependencies - run: npm install -g rtlcss - - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + - name: Install Required Packages + run: | + sudo apt-get update + sudo apt-get install -y libxmlsec1-dev + - name: Get pip cache dir id: pip-cache-dir run: | @@ -52,24 +43,14 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/development.txt') }} restore-keys: ${{ runner.os }}-pip- - - name: Install Required Packages - run: | - sudo apt-get update - sudo apt-get install -y libxmlsec1-dev memcached - - name: Install Python dependencies run: | pip install -r requirements/pip.txt pip install -r requirements/edx/development.txt - name: Initiate Services - env: - DB_DATABASE: edxtest - DB_USER: root - DB_PASSWORD: root run: | sudo systemctl start mongod - sudo service memcached start sudo /etc/init.d/mysql start - name: Reset mysql password @@ -81,20 +62,12 @@ jobs: - name: Run Tests env: - TEST_SUITE: a11y - DB_DATABASE: edxtest - DB_USER: root - DB_PASSWORD: '' + LMS_CFG: lms/envs/bok_choy.yml run: | - sudo service mysql restart - SELENIUM_BROWSER=chrome BOKCHOY_HEADLESS=true paver test_a11y + echo "CREATE DATABASE IF NOT EXISTS edxtest;" | mysql -u root + echo "CREATE DATABASE IF NOT EXISTS student_module_history_test;" | mysql -u root - - name: Save Job Artifacts - uses: actions/upload-artifact@v2 - with: - name: Build-Artifacts - path: | - reports/**/* - test_root/log/*.png - test_root/log/*.log - **/TEST-*.xml + echo "Running the LMS migrations." + ./manage.py lms --settings bok_choy migrate + echo "Running the CMS migrations." + ./manage.py cms --settings bok_choy migrate