Skip to content

joan-mido-qa/continuous-integration-example

Repository files navigation

Continuous Integration Example

This repository contains an example of a continious integration pipeline for a FastAPI application.

Development

Create a Python virtual environment and install the required dependencies:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -e .[dev]
$ pre-commit install

Run

Python

$ python -m src.main

Docker

$ docker run --rm -it -p 80:8080 $(docker build -q .)

Kubernetes

Requirements

Install

$ python -m scripts.start

Go to: ci-example.local

Test

Install dependencies;

$ pip install -e .[test]

Unit

Run the Unit tests:

$ pytest tests/unit

End-to-End

Start Kubernetes environment. Run the End-to-End tests:

$ pytest tests/e2e

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published