99jobs :
1010 # ---------------------------------------------------------------------------
1111 # Unit tests — pure Python, no external processes, no Docker.
12- # Only installs requirements- dev.txt (Flask + strenum + pytest) — the heavy
12+ # Only installs requirements/ dev.txt (Flask + strenum + pytest) — the heavy
1313 # converter packages (linkml, mdmodels, …) are not needed because the tests
1414 # inject mock converters and register_converters is a lazy import.
1515 # ---------------------------------------------------------------------------
@@ -25,13 +25,13 @@ jobs:
2525 with :
2626 python-version : " 3.11"
2727 cache : pip
28- cache-dependency-path : schema-conversion-orchestrator/ requirements- dev.txt
28+ cache-dependency-path : requirements/ dev.txt
2929
3030 - name : Install test dependencies
31- run : pip install -r schema-conversion-orchestrator/ requirements- dev.txt
31+ run : pip install -r requirements/ dev.txt
3232
3333 - name : Run unit tests
34- run : pytest schema-conversion-orchestrator/ tests/ -v --tb=short
34+ run : python -m pytest tests/ -v --tb=short
3535
3636 # ---------------------------------------------------------------------------
3737 # Build sub-packages (Java JAR + TypeScript dist)
@@ -61,19 +61,19 @@ jobs:
6161 with :
6262 node-version : " 18"
6363 cache : npm
64- cache-dependency-path : schema-conversion-orchestrator/ external_converters/node/package-lock.json
64+ cache-dependency-path : external_converters/node/package-lock.json
6565
6666 - name : Build sub-packages
67- run : bash build_subpackages.sh
67+ run : bash scripts/ build_subpackages.sh
6868
6969 - name : Upload build artifacts
7070 uses : actions/upload-artifact@v6
7171 with :
7272 name : converter-artifacts
7373 retention-days : 1
7474 path : |
75- schema-conversion-orchestrator/ external_converters/java/converter.jar
76- schema-conversion-orchestrator/ external_converters/node/dist/
75+ external_converters/java/converter.jar
76+ external_converters/node/dist/
7777
7878 # ---------------------------------------------------------------------------
7979 # Docker integration test — build image, start service, hit real endpoints
@@ -90,15 +90,16 @@ jobs:
9090 uses : actions/download-artifact@v7
9191 with :
9292 name : converter-artifacts
93+ path : external_converters
9394
9495 - name : Set up Docker Buildx
9596 uses : docker/setup-buildx-action@v4
9697
9798 - name : Build Docker image
9899 uses : docker/build-push-action@v7
99100 with :
100- context : schema-conversion-orchestrator
101- file : schema-conversion-orchestrator /Dockerfile
101+ context : .
102+ file : deploy/docker /Dockerfile
102103 push : false
103104 load : true
104105 tags : schema-converter:ci
@@ -182,6 +183,7 @@ jobs:
182183 uses : actions/download-artifact@v7
183184 with :
184185 name : converter-artifacts
186+ path : external_converters
185187
186188 - name : Set lowercase image name
187189 run : |
@@ -200,8 +202,8 @@ jobs:
200202 - name : Build and push
201203 uses : docker/build-push-action@v7
202204 with :
203- context : schema-conversion-orchestrator
204- file : schema-conversion-orchestrator /Dockerfile
205+ context : .
206+ file : deploy/docker /Dockerfile
205207 push : true
206208 tags : |
207209 ${{ env.IMAGE }}:latest
0 commit comments