From fd0a463191c4b9edb92d66920b8e2f55d30578ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20=28a=C9=AAv=C9=91r=29?= Date: Thu, 5 Sep 2024 11:44:39 +0100 Subject: [PATCH] Azure DevOps to use private feeds for Python deps in PR builds (#221) --- .pipelines/ado_pipauth.yml | 5 +++++ .pipelines/local_virtual_build.yml | 2 ++ .pipelines/pullrequest.yml | 2 +- .pipelines/python.yml | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .pipelines/ado_pipauth.yml diff --git a/.pipelines/ado_pipauth.yml b/.pipelines/ado_pipauth.yml new file mode 100644 index 00000000..2f781b19 --- /dev/null +++ b/.pipelines/ado_pipauth.yml @@ -0,0 +1,5 @@ +steps: +- task: PipAuthenticate@1 + displayName: 'Pip Authenticate to private feed' + inputs: + artifactFeeds: accl-cts-ccf-external-dependencies \ No newline at end of file diff --git a/.pipelines/local_virtual_build.yml b/.pipelines/local_virtual_build.yml index 9d5b80e3..a0c43df3 100644 --- a/.pipelines/local_virtual_build.yml +++ b/.pipelines/local_virtual_build.yml @@ -61,6 +61,8 @@ jobs: condition: ${{ parameters.RunTests }} displayName: Run Unit tests + - template: ado_pipauth.yml@self + - script: ./run_functional_tests.sh ${{ parameters.FunctionalTestArguments }} condition: ${{ parameters.RunTests }} displayName: Run Functional Tests diff --git a/.pipelines/pullrequest.yml b/.pipelines/pullrequest.yml index bed83760..3c0c63b9 100644 --- a/.pipelines/pullrequest.yml +++ b/.pipelines/pullrequest.yml @@ -72,7 +72,6 @@ extends: - stage: test_virtual_vm_build jobs: - - job: format displayName: Code Formatting pool: @@ -84,6 +83,7 @@ extends: path: s/ submodules: recursive lfs: false + - template: .pipelines/ado_pipauth.yml@self - script: $(Build.SourcesDirectory)/scripts/ci-checks.sh displayName: "CI checks" diff --git a/.pipelines/python.yml b/.pipelines/python.yml index cf9afc01..004ef622 100644 --- a/.pipelines/python.yml +++ b/.pipelines/python.yml @@ -8,4 +8,5 @@ steps: sudo apt-get -qq clean sudo rm -rf /var/lib/apt/lists/* sudo rm -rf /tmp/* - displayName: Install python dependencies \ No newline at end of file + displayName: Install python dependencies +- template: ado_pipauth.yml@self