Skip to content

neuro-inc/platform-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa36a70 · Dec 20, 2024
Oct 17, 2024
Oct 3, 2024
Oct 17, 2024
Dec 20, 2024
Dec 20, 2024
Jul 1, 2020
Oct 19, 2021
Dec 23, 2021
Apr 30, 2024
Oct 17, 2024
Apr 30, 2024
Dec 22, 2021
Sep 16, 2021
May 7, 2022
Feb 11, 2022
Feb 11, 2022
Feb 11, 2022
Feb 11, 2022
Feb 11, 2022
Mar 9, 2023
Nov 18, 2021
Aug 18, 2020
Mar 9, 2023
Apr 22, 2022
Dec 20, 2024

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.