seperate ddd tests

This commit is contained in:
Jun-te Kim 2026-06-02 15:30:58 +00:00
parent 4e02eb7c77
commit 25ba1427b1

View file

@ -61,14 +61,7 @@ jobs:
-e DB_PORT=5432 \
model-test pytest -vv -m 'not integration'
# The DDD rewrite (tests/) defines SQLModel table classes that map to the
# same physical tables as the legacy backend models. Both sets share the
# one global SQLModel.metadata, so they cannot be imported into the same
# pytest process. It runs as a separate invocation until the legacy
# models are retired. Its DB is spawned in-process by pytest-postgresql,
# so no DB service or env is required.
- name: Run DDD tests
run: |
docker run --rm \
--network host \
model-test pytest -vv tests/
# The DDD rewrite (tests/) runs in its own workflow (ddd_tests.yml): its
# SQLModel table classes map to the same physical tables as the legacy
# backend models and share the one global SQLModel.metadata, so the two
# suites cannot be imported into the same pytest process.