Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DevOps Services | Azure DevOps Server | Azure DevOps Server 2022 | Azure DevOps Server 2020
In this quickstart, you create a pipeline that builds and tests a Python app. You see how to use Azure Pipelines to build, test, and deploy Python apps and scripts as part of your continuous integration and continuous delivery (CI/CD) system.
Prerequisites
Important
GitHub procedures might require you to take one or more of the following actions in GitHub:
- Sign in.
- Authorize Azure Pipelines.
- Authenticate to GitHub organizations.
- Install the Azure Pipelines app.
Follow instructions to complete the required processes. For more information, see Access to GitHub repositories.
Fork the sample code
Fork the sample Python repository to your GitHub account.
- Go to the python-sample-vscode-flask-tutorial repository.
- Select Fork at upper right.
- Make sure your GitHub account name is selected under Owner, and select Create fork. The fork is named the same as the parent repository by default, but you can name it something different.
Create your pipeline
- In your Azure DevOps project, select Pipelines from the left navigation menu and then select New pipeline, or Create Pipeline if this pipeline is the first in the project.
- On the Where is your code screen, select GitHub as the location of your source code.
- On the Select a repository screen, select your forked Python sample repository.
- On the Configure your pipeline screen, select Starter pipeline.
Customize your pipeline
Run your pipeline
Select Save and run, and then select Save and run again. You can select Job on the Summary screen to see your job in action.
View artifacts and test results
To view your build artifacts, select the [N] published link on the Summary tab.
The Artifacts page shows the published build artifacts.
To view the test results, select the Tests tab.
Clean up
If you're done using the pipeline you created, you can delete it.
Select Pipelines from your project's left navigation menu.
In the pipeline list, hover over the pipeline you created, select the More actions icon at right, and then select Delete.
Or select the pipeline, and on the pipeline page, select the More actions icon at upper right, and then select Delete.
Enter the pipeline name, and then select Delete again.
You successfully created and ran a pipeline that built and tested a Python app. You can now use Azure Pipelines to build, test, and deploy Python apps and scripts as part of your CI/CD process.