Skip to content

Commit

Permalink
Use a specific Python version in build and publish steps (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Oct 20, 2021
1 parent 28fd8a2 commit 598f42f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions publish.yml
Expand Up @@ -42,7 +42,9 @@ jobs:
submodules: ${{ coalesce(parameters.submodules, true) }}
fetchDepth: 999999999
- task: UsePythonVersion@0
displayName: Install Python
displayName: setup python3.9
inputs:
versionSpec: '3.9'
- bash: python -m pip install --upgrade pip execute-517
displayName: Upgrading pip
- ${{ if contains(target, 'aarch64') }}:
Expand Down Expand Up @@ -96,9 +98,9 @@ jobs:
submodules: ${{ coalesce(parameters.submodules, true) }}
fetchDepth: 999999999
- task: UsePythonVersion@0
displayName: setup python3.8
displayName: setup python3.9
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
- ${{ each library in parameters.libraries }}:
- script: sudo apt-get install -y ${{ library }}
displayName: Installing ${{ library }} with apt
Expand Down Expand Up @@ -138,9 +140,9 @@ jobs:
submodules: ${{ coalesce(parameters.submodules, true) }}
fetchDepth: 999999999
- task: UsePythonVersion@0
displayName: setup python3.8
displayName: setup python3.9
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
- script: 'python -m pip install -U --force-reinstall build execute-517'
displayName: "Install build tools"
- ${{ if parameters.remove_local_scheme }}:
Expand Down Expand Up @@ -181,9 +183,9 @@ jobs:
steps:
- checkout: none
- task: UsePythonVersion@0
displayName: setup python3.8
displayName: setup python3.9
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
- script: 'python -m pip install -U --user --force-reinstall twine'
displayName: "install twine"
# Get all artifacts from this build
Expand Down

0 comments on commit 598f42f

Please sign in to comment.