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
20 changes: 20 additions & 0 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ variables:
value: none # Disable usage telemetry for internal test pipelines
- name: PYTEST_MAX_PARALLEL_TESTS
value: "auto"
- name: PipFeed
value: "AzureQuantum/azure-quantum"

resources:
repositories:
Expand Down Expand Up @@ -76,6 +78,12 @@ extends:
versionSpec: "3.11"
displayName: Set Python version

- task: PipAuthenticate@1
displayName: Authenticate pip to Azure Artifacts feed
inputs:
artifactFeeds: $(PipFeed)
onlyAddExtraIndex: false

- script: |
pip install wheel
displayName: Install wheel
Expand Down Expand Up @@ -109,6 +117,12 @@ extends:
versionSpec: "3.11"
displayName: Set Python version

- task: PipAuthenticate@1
displayName: Authenticate pip to Azure Artifacts feed
inputs:
artifactFeeds: $(PipFeed)
onlyAddExtraIndex: false

- script: |
python -m pip install --upgrade pip
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist tox
Expand Down Expand Up @@ -170,6 +184,12 @@ extends:
versionSpec: "3.11"
displayName: Set Python version

- task: PipAuthenticate@1
displayName: Authenticate pip to Azure Artifacts feed
inputs:
artifactFeeds: $(PipFeed)
onlyAddExtraIndex: false

- script: |
python $(Pipeline.Workspace)/azure-quantum-wheels/set_version.py
env:
Expand Down
5 changes: 5 additions & 0 deletions azure-quantum/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ basepython =
py311: python3.11
py312: python3.12
py313: python3.13
# Forward the pip index/auth configured by PipAuthenticate@1 into tox's isolated
# environments so package restores go through the Azure Artifacts feed (CFS policy).
passenv =
PIP_INDEX_URL
PIP_EXTRA_INDEX_URL
allowlist_externals = pytest
deps =
qiskit1: qiskit<2
Expand Down
Loading