#!/bin/bash12set -ex34# Copyright (c) Microsoft Corporation.5# Licensed under the MIT License.67pushd "$(dirname "$0")"89conda info --envs1011eval "$(conda shell.bash hook)"1213if conda info --envs | grep -q cybersim; then14echo "env already exists";15else16conda env create -f env.yml;17fi1819conda activate cybersim2021python --version2223if [ ""$GITHUB_ACTION"" == "" ] && [ -d ".git" ]; then24echo 'running under a git enlistment -> configure pre-commit checks on every `git push` to run pyright and co'25pre-commit install -t pre-push26fi2728./createstubs.sh2930popd313233