mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Remove sqlite tests for CI
This commit is contained in:
parent
11d3cd3c0c
commit
470ad5507a
54
.github/workflows/qc_checks.yaml
vendored
54
.github/workflows/qc_checks.yaml
vendored
@ -148,49 +148,6 @@ jobs:
|
|||||||
cd ${{ env.wrapper_name }}
|
cd ${{ env.wrapper_name }}
|
||||||
invoke test
|
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:
|
postgres:
|
||||||
name: Postgres
|
name: Postgres
|
||||||
needs: ['javascript', 'html']
|
needs: ['javascript', 'html']
|
||||||
@ -288,8 +245,9 @@ jobs:
|
|||||||
pip3 install invoke
|
pip3 install invoke
|
||||||
pip3 install mysqlclient
|
pip3 install mysqlclient
|
||||||
invoke install
|
invoke install
|
||||||
- name: Run Tests
|
- name: Coverage Tests
|
||||||
run: invoke test
|
run: |
|
||||||
|
invoke coverage
|
||||||
- name: Data Import Export
|
- name: Data Import Export
|
||||||
run: |
|
run: |
|
||||||
invoke migrate
|
invoke migrate
|
||||||
@ -299,3 +257,9 @@ jobs:
|
|||||||
python3 ./InvenTree/manage.py flush --noinput
|
python3 ./InvenTree/manage.py flush --noinput
|
||||||
invoke import-records -f data.json
|
invoke import-records -f data.json
|
||||||
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
|
Loading…
x
Reference in New Issue
Block a user