forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorials-linux.yml
More file actions
46 lines (38 loc) · 1.37 KB
/
tutorials-linux.yml
File metadata and controls
46 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
parameters:
- name: "pythonVersion"
type: string
displayName: "Version of Python to test"
jobs:
- job: "Tutorials"
pool: {vmImage: 'ubuntu-latest'}
variables:
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '${{ parameters.pythonVersion }}'
displayName: 'Use Python ${{ parameters.pythonVersion }}'
- bash: tools/install_ubuntu_docs_dependencies.sh
displayName: 'Install dependencies'
# Sync with '.github/workflows/docs_deploy.yml'
- bash: tools/prepare_tutorials.bash algorithms circuits circuits_advanced operators
displayName: 'Download current tutorials'
- bash: tox -e tutorials
displayName: "Execute tutorials"
env:
QISKIT_CELL_TIMEOUT: 300
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'executed_tutorials'
archiveType: tar
archiveFile: '$(Build.ArtifactStagingDirectory)/executed_tutorials.tar.gz'
verbose: true
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish updated tutorials'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'executed_tutorials'
Parallel: true
ParallelCount: 8
condition: succeededOrFailed()