From 32d98805b38bc6061bf3454b47b5957ab17f00e2 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 27 May 2024 15:35:19 +0530 Subject: [PATCH 1/2] version update --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 2e59e295..8ac54d25 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -13,4 +13,4 @@ pytest-cov pytest-httpbin pytest-httpserver sanic -werkzeug==2.0.3 +werkzeug==3.0.3 From 8cfccc97ea31921e62b2d25c5111dd2556898bb5 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 29 May 2024 16:32:53 +0530 Subject: [PATCH 2/2] run test added --- cd-scripts/runTests.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cd-scripts/runTests.sh diff --git a/cd-scripts/runTests.sh b/cd-scripts/runTests.sh new file mode 100644 index 00000000..471a2d7e --- /dev/null +++ b/cd-scripts/runTests.sh @@ -0,0 +1,22 @@ +#!/bin/sh -x + +/home/jenkins/.local/bin/pre-commit run --origin HEAD --source origin/master +PRE_COMMIT_STATUS=$? + +if [ $PRE_COMMIT_STATUS -ne 0 ]; then + git diff +fi + +pip install ujson +tox -e py39; TOX_EXIT_CODE=$? + +# Further ideas for jobs to run: +# - license check +# - make sure test coverage increases +# And, once we're sure that the pipeline is working: +# - integration/performance tests +# Once we have docs: +# - documentation coverage +# - docs build (on master only) + +[ "$TOX_EXIT_CODE" -eq 0 -a "$PRE_COMMIT_STATUS" -eq 0 ] || exit 1 \ No newline at end of file