This repository contains an example of a continious integration pipeline for a FastAPI application.
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
$ python -m src.main
$ docker run --rm -it -p 80:8080 $(docker build -q .)
$ python -m scripts.start
Go to: ci-example.local
$ python -m src.main
Install dependencies;
$ pip install -e .[test]
Run the Unit tests:
$ pytest tests/unit
Start Kubernetes environment. Run the End-to-End tests:
$ pytest tests/e2e