In this video, you’ll learn how to set up the Python project for Continuous Integration (CI). Therefore, a GitHub repository is created, the project is cloned and some basic library functionality is implemented.
Here’s the calculator.py file used in the example code:
"""
calculator.py
Calculator library containing basic math operations.
"""
def add(first_term, second_term):
return first_term + second_term
def subtract(first_term, second_term):
return first_term - second_term
You can download the full CalculatorLibrary sample project at the link below:
Dan Bader RP Team on March 5, 2020
@vicky That’s a private repository on Joe’s GitHub account. As part of this lesson you’ll need to create a new repository under your own GitHub account as explained at the start of the video. Your URL for the
git clonecommand will be different, eg.github.com/YOUR_USERNAME/CalculatorLibrary/To learn more about working with GitHub, also check out our dedicated course at realpython.com/courses/python-git-github-intro/