Created
February 18, 2022 14:04
-
-
Save FilBot3/34c15f2bab11085eb195306c74c6d3cf to your computer and use it in GitHub Desktop.
Install and use Python Poetry in an Azure DevOps Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| trigger: none | |
| pool: | |
| vmImage: ubuntu-latest | |
| stages: | |
| - stage: BuildAndTest | |
| displayName: Build and Test | |
| jobs: | |
| - job: BuildWithPoetry | |
| displayName: Build with Poetry | |
| workspace: | |
| clean: all | |
| steps: | |
| - task: Bash@3 | |
| displayName: Install Poetry | |
| inputs: | |
| targetType: inline | |
| script: | | |
| curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - | |
| env: | |
| POETRY_HOME: '/opt/poetry' | |
| - task: Bash@3 | |
| displayName: Get Poetry Version | |
| inputs: | |
| targetType: inline | |
| script: | | |
| /opt/poetry/bin/poetry --version | |
| /opt/poetry/bin/poetry --help | |
| export PATH="$PATH:/opt/poetry/bin" | |
| poetry --version | |
| poetry --help | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment