File: python.yml

package info (click to toggle)
python-jpype 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,348 kB
  • sloc: python: 19,275; cpp: 18,049; java: 8,638; xml: 1,454; makefile: 155; sh: 37
file content (21 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
parameters:
- name: version
  type: string
  default: '3.12'

- name: architecture
  type: string
  default: 'x64'

steps:
  - task: UsePythonVersion@0
    inputs:
      architecture: ${{ parameters.architecture }}
      versionSpec: ${{ parameters.version }}
      disableDownloadFromRegistry: false # boolean. Disable downloading releases from the GitHub registry. Default: false.
      allowUnstable: true # boolean. Optional. Use when disableDownloadFromRegistry = false. Allow downloading unstable releases. Default: false.
      githubToken: $(githubToken) # global (secret) variable to allow API access to Github (for not hitting a rate limit while downloading).
  - bash: |
      echo AGENT_JOBSTATUS = $AGENT_JOBSTATUS
      if [[ "$AGENT_JOBSTATUS" == "SucceededWithIssues" ]]; then exit 1; fi
    displayName: Python ${{ parameters.version }} set as interpreter.