/
Art86
/
DefectDojo-security
Обзор
Документация
Войти
/
Art86
/
DefectDojo-security
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
.github/workflows/performance-tests.yml
74 строки
2 KB
valentijnscholten
Locations V3: add import performance test and autocorrect counts (#14501)
16 мар 2026, 17:48
Не верифицирован
16 мар 2026, 17:48
5dc55a3
Код
Авторство
О чём код?
name: Performance Tests on: workflow_call: jobs: performance-tests: name: Performance Tests runs-on: ubuntu-latest needs: [] permissions: contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set-platform run: | echo "PLATFORM=linux-amd64" >> $GITHUB_ENV - name: Load images from artifacts uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 with: path: built-docker-image pattern: built-docker-image-django-alpine-linux-amd64 merge-multiple: true - name: Load docker images timeout-minutes: 10 run: | docker load -i built-docker-image/django-alpine-linux-amd64_img docker images - name: Set unit-test mode run: docker/setEnv.sh unit_tests_cicd - name: Start Postgres and webhook.endpoint run: docker compose up --no-deps -d postgres webhook.endpoint - name: Start uwsgi (idle) timeout-minutes: 5 run: | docker compose -f docker-compose.yml -f docker-compose.override.unit_tests_cicd.yml \ -f docker/docker-compose.override.performance_tests_cicd.yml \ up -d --no-deps uwsgi env: DJANGO_VERSION: alpine - name: Run performance tests (auto-update counts) timeout-minutes: 15 run: python3 scripts/update_performance_test_counts.py - name: Check counts are up to date run: | if ! git diff --quiet unittests/test_importers_performance.py; then echo "Performance test counts are out of date. Fix them by running locally:" echo "" echo " python3 scripts/update_performance_test_counts.py" echo "" echo "Diff:" git diff unittests/test_importers_performance.py exit 1 else echo "Performance test counts are up to date." fi - name: Logs if: failure() run: docker compose logs --tail="2500" uwsgi - name: Shutdown if: always() run: docker compose down