Semaphore makes it easy to setup continuous integration for Python projects. When you add a project from a Python repository, Semaphore will run a brief analysis and suggest some common commands based on the structure of your repository.
For example, after the analysis determines that the project is written in Python and it has a requirements.txt file, the following commands will be suggested:
pip install -r requirements.txt python setup.py test
You can easily change or add more build commands, customize your build environment with configuration files, environment variables and more (see the 'Customizing your build' section for more information).
The Semaphore platform supports a wide range of Python versions:
Python environments are managed with virtualenv version 15.1.0. Selecting a Python version in Project Settings activates the corresponding Python environment in your build. Virtual environments are created in the following path: /home/runner/.pyenv/<version>.
If you have another language set in Project Settings, but you need a specific Python version as well, you can use change-python-version in your setup:
Usage: change-python-version <version> Supported versions are: 2.6, 2.7, 3.3, 3.4, 3.5, 3.6
Python packages installed with pip are cached between builds on Semaphore. By default, pip packages are downloaded to /home/runner/.pip_download_cache.
Semaphore Docs are open source — Edit on GitHub