Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python continuous integration

I am looking to set up a continuous integration server for a python project. Normally this would build the project however as python is not built as such, what should be done instead? Just unit tests? Or are there additional steps that anyone can recommend?

like image 453
Jim Jeffries Avatar asked Jul 10 '11 09:07

Jim Jeffries


People also ask

What is continuous integration Python?

Continuous integration (CI) is the practice of frequently building and testing each change done to your code automatically and as early as possible.

How CI CD works in Python?

CI/CD pipelines may include formatting, enforcing good style, and alerting a developer to bugs and running tests. They ensure code can be integrated into a codebase and ultimately deliver code into production. Some CI/CD tasks can be achieved with static analysis.

Is Ansible a continuous integration tool?

Simple Integration One common way to use Ansible is by calling it from a continuous integration (CI) system upon a successful application build: The CI asks Ansible to run a playbook that deploys a staging environment with the application.


1 Answers

There are a couple of excellent recourses on how to use Jenkins together with Python:

  • Talk from PyCon
  • A blog post.
  • Another blog post.

The standard option would be to run the unittests, record the test coverage and run pylint or some other style checker.

like image 113
nikow Avatar answered Oct 04 '22 17:10

nikow