From ce95f9ac23edc753bf749d94988459f3061f7024 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 19 Dec 2020 08:24:47 +0000 Subject: [PATCH] add codestyle to tests --- azure-pipelines.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d5a61eac..fff61f9d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ jobs: cd /myagent/_work/1/s/api/tacticalrmm pip install --no-cache-dir --upgrade pip pip install --no-cache-dir setuptools==50.3.2 wheel==0.36.1 - pip install --no-cache-dir -r requirements.txt -r requirements-test.txt + pip install --no-cache-dir -r requirements.txt -r requirements-test.txt -r requirements-dev.txt displayName: "Install Python Dependencies" - script: | @@ -41,6 +41,15 @@ jobs: fi displayName: "Run django tests" + - script: | + cd /myagent/_work/1/s/api + source env/bin/activate + black --check tacticalrmm + if [ $? -ne 0 ]; then + exit 1 + fi + displayName: "Codestyle black" + - script: | cd /myagent/_work/1/s/api source env/bin/activate