From 57beea7c2e0de6c6cdd012e7c82d809a72650a7b Mon Sep 17 00:00:00 2001 From: Karl Liu Date: Tue, 10 Dec 2024 17:19:38 +0100 Subject: [PATCH] add sqlite to coverage report workflow --- .github/workflows/ci-code.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-code.yml b/.github/workflows/ci-code.yml index 8346d9fdea..b08f6157b5 100644 --- a/.github/workflows/ci-code.yml +++ b/.github/workflows/ci-code.yml @@ -27,6 +27,7 @@ jobs: fail-fast: false matrix: python-version: ['3.9', '3.12'] + database-backend: [psql, sqlite] services: postgres: @@ -73,7 +74,7 @@ jobs: AIIDA_WARN_v3: 1 # Python 3.12 has a performance regression when running with code coverage # so run code coverage only for python 3.9. - run: uv run pytest -n auto --db-backend psql -m 'not nightly' tests/ ${{ matrix.python-version == '3.9' && '--cov aiida' || '' }} + run: uv run pytest -n auto --db-backend ${{ matrix.database-backend }} -m 'not nightly' tests/ ${{ matrix.python-version == '3.9' && '--cov aiida' || '' }} - name: Upload coverage report if: matrix.python-version == 3.9 && github.repository == 'aiidateam/aiida-core'