From ec0e6474f3758cb93bd22a374479f2b38071e958 Mon Sep 17 00:00:00 2001 From: DonHaul Date: Tue, 20 Aug 2024 10:16:03 +0200 Subject: [PATCH] 1 --- .github/workflows/test-workflows.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index cebc3667..0be21437 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -51,6 +51,7 @@ jobs: -v "$(pwd)"/tests:/opt/airflow/tests -v "$(pwd)"/requirements-test.txt:/opt/airflow/requirements-test.txt -v "$(pwd)"/data:/opt/airflow/data + -v "$(pwd)"/scripts/connections/connections.json:/opt/airflow/connections.json -v "$(pwd)"/scripts/variables/variables.json:/opt/airflow/variables.json -e AIRFLOW__CORE__EXECUTOR=CeleryExecutor -e AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@127.0.0.1:5432/airflow @@ -61,4 +62,4 @@ jobs: -e AIRFLOW__CORE__LOAD_EXAMPLES="false" -e AIRFLOW__API__AUTH_BACKENDS="airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session" registry.cern.ch/cern-sis/inspire/workflows@${{ needs.build.outputs.image-id }} - bash -c "pip install -r requirements-test.txt && airflow db init && airflow variables import /opt/airflow/variables.json && pytest /opt/airflow/tests" + bash -c "pip install -r requirements-test.txt && airflow db init && airflow connections import /opt/airflow/connections.json && airflow variables import /opt/airflow/variables.json && pytest /opt/airflow/tests"