mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-10 05:08:09 +00:00
feat (backend): Add more performance tests (#11080)
* Matmair/issue10740 (#497)
* reduce noise in docker
* refactor path infos
* add more info during local frontend build
* add frontend info during release build
* Revert "Matmair/issue10740 (#497)" (#498)
This reverts commit 415c52813b.
* add more performance tests (dummy)
* dummy change
* disable debug for a more realistic test
* revert debug change
* add "real" tests
* fix style
* specify backend for type check
* add setup prep step
* fix uninstall command
* fix install?
* fix instanciation
* fix test
* fix format
* disable tests
* add auth test
* fix test
This commit is contained in:
12
.github/workflows/qc_checks.yaml
vendored
12
.github/workflows/qc_checks.yaml
vendored
@@ -116,7 +116,7 @@ jobs:
|
||||
update: true
|
||||
- name: Check types
|
||||
run: |
|
||||
ty check --python ${Python_ROOT_DIR}/bin/python3
|
||||
ty check --python ${Python_ROOT_DIR}/bin/python3 src/backend
|
||||
|
||||
mkdocs:
|
||||
name: Style [Documentation]
|
||||
@@ -324,6 +324,16 @@ jobs:
|
||||
cd ${WRAPPER_NAME}
|
||||
invoke check-server
|
||||
coverage run -m unittest discover -s test/
|
||||
- name: Prepare environment for performance tests
|
||||
run: |
|
||||
pip uninstall pytest-django -y
|
||||
cd ${WRAPPER_NAME}
|
||||
pip install .
|
||||
- name: Performance Reporting
|
||||
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4
|
||||
with:
|
||||
mode: simulation
|
||||
run: pytest ./src/performance --codspeed
|
||||
|
||||
coverage:
|
||||
name: Tests - DB [SQLite] + Coverage ${{ matrix.python_version }}
|
||||
|
||||
Reference in New Issue
Block a user