Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion eng/ci/emulator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ extends:
jobs:
- template: /eng/templates/jobs/ci-emulator-tests.yml@self
parameters:
PoolName: 1es-pool-azfunc
PoolName: 1es-pool-azfunc
ArtifactFeed: 'internal/PythonWorker_Internal_PublicPackages'
6 changes: 5 additions & 1 deletion eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ extends:
- template: /eng/templates/jobs/ci-emulator-tests.yml@self
parameters:
PoolName: 1es-pool-azfunc
ArtifactFeed: 'internal/PythonWorker_Internal_PublicPackages'
- stage: RunWorkerUnitTests
dependsOn: BuildPythonWorker
jobs:
- template: /eng/templates/jobs/ci-unit-tests.yml@self
parameters:
PoolName: 1es-pool-azfunc
ArtifactFeed: 'internal/PythonWorker_Internal_PublicPackages'
- stage: RunWorkerDockerConsumptionTests
dependsOn: BuildPythonWorker
jobs:
Expand Down Expand Up @@ -99,6 +101,7 @@ extends:
PROJECT_NAME: 'Python V2 Library'
PROJECT_DIRECTORY: 'runtimes/v2'
PoolName: 1es-pool-azfunc
ArtifactFeed: 'internal/PythonWorker_Internal_PublicPackages'

# Python V1 Library Build and Test Stages
- stage: BuildV1Library
Expand All @@ -116,4 +119,5 @@ extends:
parameters:
PROJECT_NAME: 'Python V1 Library'
PROJECT_DIRECTORY: 'runtimes/v1'
PoolName: 1es-pool-azfunc
PoolName: 1es-pool-azfunc
ArtifactFeed: 'internal/PythonWorker_Internal_PublicPackages'
7 changes: 6 additions & 1 deletion eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,22 @@ extends:
- template: /eng/templates/jobs/ci-dependency-check.yml@self
parameters:
PoolName: 1es-pool-azfunc-public
ArtifactFeed: 'public/PythonWorker_PublicPackages'
- stage: RunWorkerUnitTests
dependsOn: BuildPythonWorker
jobs:
- template: /eng/templates/jobs/ci-unit-tests.yml@self
parameters:
PROJECT_DIRECTORY: 'workers'
PoolName: 1es-pool-azfunc-public
ArtifactFeed: 'public/PythonWorker_PublicPackages'
- stage: RunWorkerEmulatorTests
dependsOn: BuildPythonWorker
jobs:
- template: /eng/templates/jobs/ci-emulator-tests.yml@self
parameters:
PoolName: 1es-pool-azfunc-public
ArtifactFeed: 'public/PythonWorker_PublicPackages'

# Python V2 Library Build and Test Stages
- stage: BuildV2Library
Expand All @@ -110,6 +113,7 @@ extends:
PROJECT_NAME: 'V2 Library'
PROJECT_DIRECTORY: 'runtimes/v2'
PoolName: 1es-pool-azfunc-public
ArtifactFeed: 'public/PythonWorker_PublicPackages'

# Python V1 Library Build and Test Stages
- stage: BuildV1Library
Expand All @@ -127,4 +131,5 @@ extends:
parameters:
PROJECT_NAME: 'V1 Library'
PROJECT_DIRECTORY: 'runtimes/v1'
PoolName: 1es-pool-azfunc-public
PoolName: 1es-pool-azfunc-public
ArtifactFeed: 'public/PythonWorker_PublicPackages'
4 changes: 4 additions & 0 deletions eng/pack/templates/macos_64_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ steps:
versionSpec: ${{ parameters.pythonVersion }}
allowUnstable: true
addToPath: true
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- powershell: |
# Parse the Python minor version
$PY_VER = "$(pythonVersion)"
Expand Down
4 changes: 4 additions & 0 deletions eng/pack/templates/nix_arm64_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ steps:
versionSpec: ${{ parameters.pythonVersion }}
allowUnstable: true
addToPath: true
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- powershell: |
# Parse the Python minor version
$PY_VER = "$(pythonVersion)"
Expand Down
4 changes: 4 additions & 0 deletions eng/pack/templates/nix_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ steps:
versionSpec: ${{ parameters.pythonVersion }}
allowUnstable: true
addToPath: true
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- powershell: |
# Parse the Python minor version
$PY_VER = "$(pythonVersion)"
Expand Down
4 changes: 4 additions & 0 deletions eng/pack/templates/win_env_gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ steps:
allowUnstable: true
architecture: ${{ parameters.architecture }}
addToPath: true
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- powershell: |
# Parse the Python minor version
$PY_VER = "$(pythonVersion)"
Expand Down
3 changes: 2 additions & 1 deletion eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
parameters:
PYTHON_VERSION: ${{ parameters.PYTHON_VERSION }}
PROJECT_NAME: ${{ parameters.PROJECT_NAME }}
PROJECT_DIRECTORY: ${{ parameters.PROJECT_DIRECTORY }}
PROJECT_DIRECTORY: ${{ parameters.PROJECT_DIRECTORY }}
ArtifactFeed: 'public/PythonWorker_PublicPackages'
7 changes: 7 additions & 0 deletions eng/templates/jobs/ci-dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
ArtifactFeed: ''

jobs:
- job: "TestPython"
displayName: "Run Dependency Checks"
Expand Down Expand Up @@ -25,6 +28,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
- powershell: |
$PY_VER = "$(PYTHON_VERSION)"
Write-Host "Python version: $PY_VER"
Expand Down
5 changes: 5 additions & 0 deletions eng/templates/jobs/ci-emulator-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
PROJECT_DIRECTORY: 'workers'
ArtifactFeed: ''

jobs:
- job: "TestPython"
Expand Down Expand Up @@ -46,6 +47,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
- task: UseDotNet@2
displayName: 'Install .NET 8'
inputs:
Expand Down
5 changes: 5 additions & 0 deletions eng/templates/jobs/ci-library-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
PROJECT_NAME: ''
PROJECT_DIRECTORY: ''
ArtifactFeed: ''

jobs:
- job: "TestPython"
Expand All @@ -20,6 +21,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
- task: UseDotNet@2
displayName: 'Install .NET 8'
inputs:
Expand Down
5 changes: 5 additions & 0 deletions eng/templates/jobs/ci-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
PROJECT_DIRECTORY: 'workers'
ArtifactFeed: ''

jobs:
- job: "TestPython"
Expand Down Expand Up @@ -46,6 +47,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
- task: UseDotNet@2
displayName: 'Install .NET 8'
inputs:
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/build-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.13"
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'public/PythonWorker_PublicPackages'
- bash: |
python --version
displayName: 'Check python version'
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-core-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
inputs:
versionSpec: "3.10"
addToPath: true
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- task: UseDotNet@2
displayName: 'Install DotNet 3'
inputs:
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-custom-image-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(CUSTOM_PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- bash: |
chmod +x eng/scripts/install-dependencies.sh

Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-docker-consumption-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- bash: |
chmod +x eng/scripts/install-dependencies.sh

Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-docker-dedicated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- bash: |
chmod +x eng/scripts/install-dependencies.sh

Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- task: UseDotNet@2
displayName: 'Install .NET 8'
inputs:
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/ci-lc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'

- bash: |
# Start Azurite storage emulator in the background
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/publish-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
displayName: 'Use Python 3.13'
inputs:
versionSpec: 3.13
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages'
- pwsh: |
$newLibraryVersion = "$(NewWorkerVersion)"
$pypiToken = "$(PypiToken)"
Expand Down
5 changes: 5 additions & 0 deletions eng/templates/shared/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ parameters:
PYTHON_VERSION: ''
PROJECT_NAME: ''
PROJECT_DIRECTORY: ''
ArtifactFeed: ''

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: ${{ parameters.PYTHON_VERSION }}
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
- bash: |
python --version
displayName: 'Check python version'
Expand Down
Loading