Skip to content

neuro-inc/platform-api

Repository files navigation

codecov

Platform API

Local Development

  1. Install minikube (https://github.com/kubernetes/minikube#installation);
  2. Launch minikube:
mkdir -p ~/.minikube/files/files
minikube start --kubernetes-version=v1.14.0
  1. Check the minikube k8s cluster status:
minikube status
  1. Make sure the kubectl tool uses the minikube k8s cluster:
kubectl config use-context minikube
  1. Apply minikube configuration and some k8s fixture services:
minikube addons enable ingress
kubectl apply -f tests/k8s/namespace.yml
kubectl apply -f tests/k8s/nfs.yml
kubectl apply -f tests/k8s/storageclass.yml
  1. Create a new virtual environment with Python 3.6:
python -m venv venv
source venv/bin/activate
  1. Install dev dependencies:
pip install -e .[dev]
  1. Run the unit test suite:
pytest -vv tests/unit
  1. Run the integration test suite:
pytest -vv tests/integration

Debugging Tests

Pass -x -s --log-cli-level=DEBUG to your pytest commands for better debugging experience.