Forum Discussion
Devops_tester
Apr 28, 2023Copper Contributor
Python/ c#
Hi
as a student I need to create a project to reflect a python application that will run through a basic ci pipeline.
any suggestions ?
i plan to use azure dev ops I also have a diagram
- Makenx2022Copper Contributorhere are the steps to create a project for a Python application that will run through a basic CI pipeline using Azure DevOps:
First, create a new project in Azure DevOps.
Create a new repository within the project.
Clone the repository to your local machine.
Write your Python code and save it in the repository.
Create a requirements.txt file listing all the required Python packages and their versions.
Create a azure-pipelines.yml file in the root of the repository to define the CI pipeline.
In the azure-pipelines.yml file, define the pipeline stages, such as build, test, and deploy.
Use the appropriate tasks for each stage, such as the Python task for running Python scripts and the pytest task for running tests.
Configure the pipeline triggers, such as manual or automatic on commit to the master branch.
Commit and push your changes to the repository.
Go to Azure DevOps and navigate to the pipelines tab to see the pipeline running and view the logs and results.