From 71c88f8bccccc9fb04f42942a1efc63686f97cd3 Mon Sep 17 00:00:00 2001 From: ckunki Date: Mon, 7 Oct 2024 10:25:27 +0200 Subject: [PATCH] #333: Added project short tag in notebook tests --- .github/workflows/notebook_tests.yaml | 1 + doc/changes/changes_3.2.0.md | 4 ++++ .../test_notebooks_in_dss_docker_image.py | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notebook_tests.yaml b/.github/workflows/notebook_tests.yaml index c94357a3..a374dcc4 100644 --- a/.github/workflows/notebook_tests.yaml +++ b/.github/workflows/notebook_tests.yaml @@ -44,3 +44,4 @@ jobs: NBTEST_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} NBTEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }} NBTEST_AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }} + PROJECT_SHORT_TAG: XAIL-NB diff --git a/doc/changes/changes_3.2.0.md b/doc/changes/changes_3.2.0.md index e4fbbf63..1afa0b87 100644 --- a/doc/changes/changes_3.2.0.md +++ b/doc/changes/changes_3.2.0.md @@ -3,3 +3,7 @@ Code name: ## Summary + +## Refactorings + +* #333: Added project short tag in notebook tests diff --git a/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py b/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py index 0bfd5003..af7e2680 100644 --- a/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py +++ b/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py @@ -86,7 +86,9 @@ def test_notebook(notebook_test_container_with_log, notebook_test_file, notebook environ = os.environ.copy() environ["NBTEST_ACTIVE"] = "TRUE" nbtest_environ = {key: value for key, value in environ.items() if ( - key.startswith("NBTEST_") or key.startswith("SAAS_"))} + key.startswith("NBTEST_") + or key.startswith("SAAS_") + or key == "PROJECT_SHORT_TAG")} exec_command( command_run_test, container,