From 0396b3ba1f0886d828690d9a17de0a4ed4ff4e5b Mon Sep 17 00:00:00 2001 From: Yantao Luo <49816287+luoyantao99@users.noreply.github.com> Date: Sun, 5 Nov 2023 20:38:12 -0500 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86e1d6..7487253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,8 +61,11 @@ jobs: # Run pylint on the service pylint service tests --max-line-length=127 - - name: Run unit tests with PyTest - run: pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings + - name: Run unit tests with green + run: | + export FLASK_APP=service:app + green -q + coverage report --fail-under=95 env: DATABASE_URI: "postgresql://postgres:pgs3cr3t@postgres:5432/testdb"