diff --git a/.devops/testing_ci.yml b/.devops/test_stats.yml similarity index 73% rename from .devops/testing_ci.yml rename to .devops/test_stats.yml index e9e53e9a24..bcad956328 100644 --- a/.devops/testing_ci.yml +++ b/.devops/test_stats.yml @@ -1,10 +1,13 @@ -# Python Django -# Test a Django project on multiple versions of Python. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/python - trigger: -- master + batch: true + branches: + include: + - master + - stable + - refs/tags/* + paths: + include: + - src/backend pool: vmImage: ubuntu-latest @@ -37,17 +40,19 @@ steps: print('##vso[task.setvariable variable=projectRoot]{}'.format(project_location)) - script: | - python -m pip install --upgrade pip setuptools wheel - pip install --require-hashes -r requirements.txt - pip install --require-hashes -r requirements-dev.txt - pip install unittest-xml-reporting coverage invoke + python -m pip install --upgrade pip setuptools wheel uv + uv pip install --require-hashes -r src/backend/requirements.txt + uv pip install --require-hashes -r src/backend/requirements-dev.txt sudo apt-get install poppler-utils sudo apt-get install libpoppler-dev + uv pip install unittest-xml-reporting coverage invoke displayName: 'Install prerequisites' + env: + UV_SYSTEM_PYTHON: 1 - script: | pushd '$(projectRoot)' - invoke update + invoke update --uv coverage run manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input coverage xml -i displayName: 'Run tests' @@ -57,7 +62,11 @@ steps: INVENTREE_MEDIA_ROOT: ./media INVENTREE_STATIC_ROOT: ./static INVENTREE_BACKUP_DIR: ./backup + INVENTREE_SITE_URL: http://localhost:8000 INVENTREE_PLUGINS_ENABLED: true + UV_SYSTEM_PYTHON: 1 + INVENTREE_DEBUG: true + INVENTREE_LOG_LEVEL: INFO - task: PublishTestResults@2 inputs: @@ -65,7 +74,6 @@ steps: testRunTitle: 'Python $(PYTHON_VERSION)' condition: succeededOrFailed() -- task: PublishCodeCoverageResults@1 +- task: PublishCodeCoverageResults@2 inputs: - codeCoverageTool: Cobertura summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' diff --git a/README.md b/README.md index 5f3000fe22..86442a49fb 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![Documentation Status](https://readthedocs.org/projects/inventree/badge/?version=latest)](https://inventree.readthedocs.io/en/latest/?badge=latest) ![Docker Build](https://github.com/inventree/inventree/actions/workflows/docker.yaml/badge.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/9bbb2101-0a4d-41e7-ad56-b63fb6053094/deploy-status)](https://app.netlify.com/sites/inventree/deploys) +[![Performance Testing](https://dev.azure.com/InvenTree/InvenTree%20test%20statistics/_apis/build/status%2Fmatmair.InvenTree?branchName=testing)](https://dev.azure.com/InvenTree/InvenTree%20test%20statistics/_build/latest?definitionId=3&branchName=testing) [![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7179/badge)](https://bestpractices.coreinfrastructure.org/projects/7179) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/inventree/InvenTree/badge)](https://securityscorecards.dev/viewer/?uri=github.com/inventree/InvenTree) @@ -156,7 +157,7 @@ If you use InvenTree and find it to be useful, please consider [sponsoring the p ## :gem: Acknowledgements We want to acknowledge [PartKeepr](https://github.com/partkeepr/PartKeepr) as a valuable predecessor and inspiration. -Find a full list of used third-party libraries in [our documentation](https://docs.inventree.org/en/latest/credits/). +Find a full list of used third-party libraries in the license information dialog of your instance. ## :heart: Support diff --git a/docs/mlc_config.json b/docs/mlc_config.json index f9f3bb78d2..dfe26d15a3 100644 --- a/docs/mlc_config.json +++ b/docs/mlc_config.json @@ -20,6 +20,9 @@ }, { "pattern": "https://opensource.org/license/MIT" + }, + { + "pattern": "^https://dev.azure.com" } ] }