ci: provide container paths and a clean TMPDIR for tests

test(transactions): enable soft delete explicitly in the hard-delete attachment test
This commit is contained in:
Herculino Trotta committed 2026-10-24 14:01:47 -03:00
1 parent b6833f2b7b
commit 5468d17e20
2 files changed
+11

No files matched your search

+10
View File
@@ -60,10 +60,20 @@ jobs:
- name: Install dependencies
run: uv sync --frozen
# Import code reads/writes the Docker image's paths directly
- name: Create container paths used by the app
run: |
sudo mkdir -p /usr/src/app/temp /usr/src/app/import_presets
sudo chown -R "$(id -u):$(id -g)" /usr/src/app
- name: Check for missing migrations
working-directory: app
run: uv run python manage.py makemigrations --check --dry-run
- name: Run tests
working-directory: app
env:
# Some tests point STATIC_ROOT at the temp dir; the runner's /tmp
# holds root-only systemd dirs that WhiteNoise can't scan
TMPDIR: ${{ runner.temp }}
run: uv run python manage.py test --parallel auto --noinput