From e49f89d8cc830991c2db6819149133e69da85242 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 21 Dec 2021 00:43:03 +1100 Subject: [PATCH] Revert "Remove sqlite tests for CI" This reverts commit 470ad5507ac1bd89c776c9eb2ee002e9f6e4cecb. --- .github/workflows/qc_checks.yaml | 54 ++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index d2906b75c4..598f518f27 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -148,6 +148,49 @@ jobs: cd ${{ env.wrapper_name }} invoke test + coverage: + name: Sqlite / coverage + needs: ['javascript', 'html'] + runs-on: ubuntu-latest + + env: + INVENTREE_DB_NAME: ./inventree.sqlite + INVENTREE_DB_ENGINE: sqlite3 + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Setup Python ${{ env.python_version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ env.python_version }} + cache: 'pip' + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install gettext + pip3 install invoke + invoke install + invoke static + - name: Coverage Tests + run: | + invoke coverage + - name: Data Import Export + run: | + invoke migrate + invoke import-fixtures + invoke export-records -f data.json + rm inventree.sqlite + invoke migrate + invoke import-records -f data.json + invoke import-records -f data.json + - name: Test Translations + run: invoke translate + - name: Check Migration Files + run: python3 ci/check_migration_files.py + - name: Upload Coverage Report + run: coveralls + postgres: name: Postgres needs: ['javascript', 'html'] @@ -245,9 +288,8 @@ jobs: pip3 install invoke pip3 install mysqlclient invoke install - - name: Coverage Tests - run: | - invoke coverage + - name: Run Tests + run: invoke test - name: Data Import Export run: | invoke migrate @@ -257,9 +299,3 @@ jobs: python3 ./InvenTree/manage.py flush --noinput invoke import-records -f data.json invoke import-records -f data.json - - name: Test Translations - run: invoke translate - - name: Check Migration Files - run: python3 ci/check_migration_files.py - - name: Upload Coverage Report - run: coveralls \ No newline at end of file