From a975eb3fb0e5290582f63c438854b17f801cafab Mon Sep 17 00:00:00 2001 From: luis Date: Sat, 6 Jan 2024 10:24:31 +0800 Subject: [PATCH] add coverage --- .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 a8aa632..01be991 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,6 +140,8 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + pip install coverage + pip install coveralls - name: Enable Postgres Trigram Extension run: | PGPASSWORD=postgres psql -U postgres -h 127.0.0.1 -p ${{ job.services.postgres.ports[5432] }} -d ci_db_test -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" @@ -147,5 +149,6 @@ jobs: env: TEST_DATABASE_URL: postgresql://postgres:postgres@localhost/ci_db_test TEST_DATABASE_ASYNC_URL: postgresql+asyncpg://postgres:postgres@localhost/ci_db_test - run: | - python -m unittest discover -s ./tests/test_implementations \ No newline at end of file + run: | + python -m coverage run -m unittest + coveralls \ No newline at end of file