Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.05 KB

CONTRIBUTING.md

File metadata and controls

43 lines (35 loc) · 1.05 KB

Contributing

Quick version of setting up your environment

Python on MacOS

Assuming you use MacOS - otherwise the general commands likely work for all OS's but I won't make an promises

  1. Install Homebrew if not installed already:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install pyenv
brew install pyenv
  1. Install & activate python 3.9.7 or higher
pyenv install 3.9.7
pyenv local 3.9.7
  1. Create and activate venv
python3 -m venv venv && source venv/bin/activate
  1. Install requirements
pip install -r requirements.txt

Manual Testing Requirements

export GOOGLE_CLOUD_PROJECT=<my-project-id>
# The following account will need cloud monitoring admin role
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa-key.json

Manual Test Command Example

python push_deploy_metric.py --team test-team --service test-service --environment test-env --status started --result inactive --version v0.0.0 --metric-value 1