Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 2 additions & 0 deletions eng/ci/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extends:
templateContext:
type: releaseJob
isProduction: true
environment: durabletask-pypi-prod
inputs:
- input: pipelineArtifact
pipeline: DurableTaskPythonBuildPipeline
Expand Down Expand Up @@ -63,6 +64,7 @@ extends:
templateContext:
type: releaseJob
isProduction: true
environment: durabletask-pypi-prod
inputs:
- input: pipelineArtifact
pipeline: DurableTaskPythonBuildPipeline
Expand Down
16 changes: 13 additions & 3 deletions eng/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ jobs:
# PRs to main and main itself; this step is defense-in-depth to ensure
# the artifacts we're about to ship are at least importable and pass
# the pure-Python unit tests.
#
# `requirements.txt` brings in the test-time dependencies (opentelemetry,
# grpcio, etc.) that the test modules import. We install it before the
# built wheels so the wheels (which are what we're actually validating)
# take precedence over any editable/source install of the same package.
- script: |
set -e
python -m pip install -r requirements.txt
python -m pip install $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask/*.whl
python -m pip install $(Build.ArtifactStagingDirectory)/buildoutputs/durabletask-azuremanaged/*.whl
Comment thread
andystaples marked this conversation as resolved.
Outdated
displayName: "Install built wheels"
Expand All @@ -75,6 +81,10 @@ jobs:
displayName: "pytest: durabletask (unit tests, no emulators)"
workingDirectory: tests/durabletask

- script: pytest -m "not dts" --verbose
displayName: "pytest: durabletask-azuremanaged (unit tests, no emulators)"
workingDirectory: tests/durabletask-azuremanaged
# `tests/durabletask-azuremanaged/` is NOT exercised here.
# Those tests require the Durable Task Scheduler emulator which is
Comment thread
andystaples marked this conversation as resolved.
# not available in the network-isolated pools.
- script: |
set -e
python -P -c "import durabletask.azuremanaged; from durabletask.azuremanaged.client import DurableTaskSchedulerClient; from durabletask.azuremanaged.worker import DurableTaskSchedulerWorker; print('durabletask.azuremanaged smoke import OK')"
displayName: "smoke import: durabletask-azuremanaged"
Comment thread
andystaples marked this conversation as resolved.
Loading