diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 526a51a138358e9f953654e99f9fbe49930e2929..85814a861e716281ea5038a94941e2236862372c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,12 +47,15 @@ stages: include: - project: "osdu/platform/ci-cd-pipelines" file: "cloud-providers/azure_dag.yml" + ref: release/0.23 - project: "osdu/platform/ci-cd-pipelines" file: "build/python-linters.yml" + ref: release/0.23 - project: "osdu/platform/ci-cd-pipelines" file: "cloud-providers/gc-dag.yaml" + ref: release/0.23 - local: "/devops/gc/pipeline/override-stages.yml" @@ -60,14 +63,16 @@ include: - project: "osdu/platform/ci-cd-pipelines" file: "cloud-providers/aws-global-variables.yml" + ref: release/0.23 - project: "osdu/platform/ci-cd-pipelines" file: "cloud-providers/aws-dag.yml" + ref: release/0.23 python-static-analysis: # skip the job - script: - - echo 0 + script: + - echo 0 pylint: variables: @@ -80,12 +85,12 @@ isort: SRC_FILES: "src/*/*.py" test_dags: - tags: ["osdu-small"] + tags: [ "osdu-small" ] stage: test_dags - needs: ["pylint", "isort"] + needs: [ "pylint", "isort" ] image: name: apache/airflow:2.1.2-python3.8 - entrypoint: [""] + entrypoint: [ "" ] script: - sh -c "tests/./test_dags.sh" || EXIT_CODE=$? - exit ${EXIT_CODE} @@ -96,12 +101,12 @@ test_dags: expire_in: 1 week unit_tests: - tags: ["osdu-small"] + tags: [ "osdu-small" ] stage: unit_tests - needs: ["pylint", "isort"] + needs: [ "pylint", "isort" ] image: name: apache/airflow:2.1.2-python3.8 - entrypoint: [""] + entrypoint: [ "" ] script: # - tests/./unit_tests.sh || EXIT_CODE=$? #TODO: unit tests moved to airflow-osdu-lib, need to remove `unit_tests` CI step later - exit 0 @@ -110,9 +115,9 @@ unit_tests: # tests, but we need to override here because of stage name mismatch azure_standalone_tests: stage: unit_tests - needs: ["pylint"] + needs: [ "pylint" ] variables: AZURE_SKIP_STANDALONE_TESTS: "true" azure_build_dag: - needs: ["unit_tests"] + needs: [ "unit_tests" ]