2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 02:36:31 +00:00

Unit test fixes (#10019)

* Add --keepdb option for unit test

* Reduce server launch overhead

- isGeneratingSchema was EXPENSIVE
- Running a single unit test reduced from 30s to 3s

* Option to disable check
This commit is contained in:
Oliver
2025-07-15 01:30:58 +10:00
committed by GitHub
parent ea00a50dfd
commit d62ac38cb1
5 changed files with 23 additions and 17 deletions

View File

@@ -341,7 +341,7 @@ jobs:
- name: Check Migration Files
run: python3 .github/scripts/check_migration_files.py
- name: Coverage Tests
run: invoke dev.test --coverage --translations
run: invoke dev.test --check --coverage --translations
- name: Upload raw coverage to artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # pin@v4.6.2
with:
@@ -400,7 +400,7 @@ jobs:
dev-install: true
update: true
- name: Run Tests
run: invoke dev.test --translations
run: invoke dev.test --check --translations
- name: Data Export Test
uses: ./.github/actions/migration
@@ -448,7 +448,7 @@ jobs:
dev-install: true
update: true
- name: Run Tests
run: invoke dev.test --translations
run: invoke dev.test --check --translations
- name: Data Export Test
uses: ./.github/actions/migration
@@ -490,7 +490,7 @@ jobs:
dev-install: true
update: true
- name: Run Tests
run: invoke dev.test --migrations --report --coverage --translations
run: invoke dev.test --check --migrations --report --coverage --translations
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # pin@v5.4.3
if: always()