๐ Introduction
CI/CD platform that can be used to implement DevOps practices.
Its mission is to manage change, so software teams can innovate faster, That means to be less complex as can be.
The main Aim of creating CI/CD pipelines is to Deliver changes, Build new releases; however, with a non-cloud CI/CD platform you should manage the CI/CD platform infrastructure itself.
Therefore, CircleCI helps you to focus on Delivering changes and starting to build pipelines very fast "will see in the PROJECT given in this post"
Also, CircleCi Provides a Free Plan on its cloud-based solution.
To list How powerful is CircleCI
Build pipelines very fast, with less complexity.
Hold and Handel The CI/CD solution infrastructure.
Have a free plan pricing.
Learn more about CircleCI_Benefits
๐นEnvironment Setup
1. CircleCI signup
CircleCI is integrated with GitHub, So in this lab environment will signup with my GitHub account.
2. Create a Project
After Signing up, you'll be redirected to the Setup your code Project section Which has to select the organization, and all GitHub repos listed below, to start creating a project Press on the SetUp Project button.
Then, select Fastest to discover the config.yaml template file and config.yaml template is The pipeline configuration yaml file.
Now, Let's select the CircleCi-Python sample, This sample provides config.yaml files with minimum configurations, Just note that if you have already config.yaml file you can press skip this step.
Discover the config.yaml file, then press on commit and run.
This will fire the pipeline and first create a directory which is .circleci, then in that directory creates a config.yaml file in the GitHub repository
Here's your first pipeline that has been running with one job called build.
๐ธ Setup Triggers
Triggers are used to auto-trigger the pipeline without human intervention.
All that you do is commit your changes to your repo and the pipeline will fire automatically.
How it Works
Press on Dashboard
Ensure that you're selecting the right project and branch
Then press the Trigger pipeline button, Press the Trigger pipeline again, on the other screen that appears.
๐ธ Check Triggers
let's check our whole process
- Open your GitHub repo
- In the URL section, replace .com with .dev*, this will open a code editor.
- Make any changes in your code, add then commit it.
- This should fire the *CircleCi-Python pipeline with the new change automatically.
A code sample of changes is shown below in the given image. For code, the GitHub link is present at the end of this blog.
Now, go to the CircleCI platform, select dashboard, and in the pipeline section click on CircleCi-Python Jobs, you get workflow from build, test and deploy.
That's it, Hope this article inspired you and helps you.
๐ Conclusion
In this post, we have explored how to use CircleCI to build_test_deploy Python-based projects. We started by understanding the provided code snippet, which demonstrates a basic CircleCI configuration for a Python project. We examined the YAML code, which defines a job named "build" that utilizes a Docker image, installs dependencies, and runs Python code. CircleCI is a powerful and user-friendly platform for automating the build, test, and deployment processes of Python projects. Its integration capabilities, scalability, and extensive feature set make it an essential tool for modern software development teams. By leveraging CircleCI, you can streamline your development workflow, increase productivity, and deliver high-quality software more efficiently.
\...................................................................................................................................................
The above information is up to my understanding. Suggestions are always welcome.
#CI/CD #automation #CircleCI #continuous integration #TrainWithShubham
#90daysofdevopsc #happylearning
Shubham Londhe Sir
Follow for many such contents:
LinkedIn: linkedin.com/in/dushyant-kumar-dk
Blog: dushyantkumark.hashnode.dev
Github: https://github.com/dushyantkumark/CircleCi-Python.git