mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-22 08:32:03 +01:00
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:
1 parent
b6833f2b7b
commit
5468d17e20
2 files changed
+11
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user