Skip to content

Commit 7cbb8c9

Browse files
bnmnetpclaude
andcommitted
Fix CI: create stub static asset directories before running tests
The assignment server mounts react/ and staticAssets/ via StaticFiles at import time, raising RuntimeError if those directories don't exist. These are build artifacts not tracked by git, so they must be created in CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 209620d commit 7cbb8c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test-crud.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
- name: Install dependencies
6565
run: poetry install --with dev --no-interaction
6666

67+
- name: Create stub static asset directories
68+
run: |
69+
mkdir -p bases/rsptx/assignment_server_api/react
70+
mkdir -p bases/rsptx/assignment_server_api/staticAssets
71+
6772
- name: Run tests
6873
run: |
6974
poetry run pytest -v --tb=short

0 commit comments

Comments
 (0)