From 12150a3656bf9c92f0fb0a0554ebd97294c3ca3f Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Fri, 6 Aug 2021 09:14:55 +0200 Subject: [PATCH] Update CONTRIBUTING to add postgres step --- CONTRIBUTING.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ea07f365..8e8243ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,13 @@ You also need to install `gpg`, on Mac it can be done with: brew install gnupg ``` -Then make sure all tests pass +Then make sure all tests pass. You need to run a local postgres database to run tests, it can be run with docker with: + +```bash +docker run -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -e POSTGRES_DB=test -p 5432:5432 postgres:13 +``` + +then run all tests ```bash pytest