TobiasRothlin / DevOpsPipeline

An example project for a Python DevOps Pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unitTest

DevOps Pipeline

For efficient development the build, test and deployment of a project needs to be automated. This is an attempt of doing this. The Ideas in this Repo are based on the Book Python for DevOps and Practical MLOps

Folder Structure

makefile

The makefile is the central part of the project. It automates different parts of the development process.

Open a terminal session in the repo folder.

make

will create a Virtual Environment and install all dependencies.

make setup 

same as make

make clean 

deletes the Virtual Environment and the pycache folders.

make test 
test_Add (__main__.TestBasicMathFunctions) ... ok
test_Multiply (__main__.TestBasicMathFunctions) ... ok
test_Sin (__main__.TestBasicMathFunctions) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.000s

OK

runs all tests for the Module BasicMathFunctions.

make style
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

rates the code quality of the Module BasicMathFunctions.

requirements.txt

This file contains all dependencies used in the project

test_BasicMathFunctions.py

This file contains all test cases for the Module BasicMathFunctions

BasicMathFunctions.py

This file contains the functions implemented

GitHub Action Setup

About

An example project for a Python DevOps Pipeline


Languages

Language:Python 73.7%Language:Makefile 26.3%