use dev dependency group for dependency installation in CI and fix command for running test with new src layout

This commit is contained in:
David Paul Graham 2026-03-14 08:26:05 -04:00
parent d63e02c453
commit a0a8631e14
No known key found for this signature in database
GPG key ID: ACDB045B782EF333
2 changed files with 4 additions and 9 deletions

View file

@ -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

2
.gitignore vendored
View file

@ -7,3 +7,5 @@ dist/
.ruff_cache
.venv
.venv_django_*
.coverage*
coverage.*