From a0a8631e14d2c2b28143a3ee367948a97f207ed5 Mon Sep 17 00:00:00 2001 From: David Paul Graham Date: Sat, 14 Mar 2026 08:26:05 -0400 Subject: [PATCH] use dev dependency group for dependency installation in CI and fix command for running test with new src layout --- .github/workflows/lint-and-test.yml | 11 ++--------- .gitignore | 2 ++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 5d9966b..43c925b 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -48,17 +48,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install --group dev pip install -q Django~=${{ matrix.django_version }} - pip install coverage pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Run tests run: | - coverage3 run --source='./encrypted_fields' manage.py test + coverage run --source='./src/encrypted_fields' manage.py test coverage xml - -# - name: "Upload coverage to Artifact" -# uses: actions/upload-artifact@v4 -# with: -# name: coverage -# path: coverage.xml diff --git a/.gitignore b/.gitignore index f0f01b9..a04484b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ dist/ .ruff_cache .venv .venv_django_* +.coverage* +coverage.*