Skip to content

Commit

Permalink
Add test (the given wf.json)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasu Jaganath committed Sep 24, 2024
1 parent f6ffaa8 commit 17abed1
Show file tree
Hide file tree
Showing 4 changed files with 846 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/run_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ jobs:
# NOTE: Do NOT add coverage to PYPY CI runs https://github.com/tox-dev/tox/issues/2252
run: cd workflow-inference-compiler/ && pytest tests/test_rest_core.py -k test_rest_core --cwl_runner cwltool

- name: PyTest Run REST WFB Tests
if: always()
# NOTE: Do NOT add coverage to PYPY CI runs https://github.com/tox-dev/tox/issues/2252
run: cd workflow-inference-compiler/ && pytest tests/test_rest_wfb.py -k test_rest_wfb --cwl_runner cwltool

- name: PyTest Run ICT to CLT conversion Tests
if: always()
# NOTE: Do NOT add coverage to PYPY CI runs https://github.com/tox-dev/tox/issues/2252
Expand Down
2 changes: 1 addition & 1 deletion src/sophios/api/http/restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def compile_wf(request: Request) -> Json:
# ========= PROCESS REQUEST OBJECT ==========
req: Json = await request.json()
wfb_payload: Json = req['payload']
run_opt: str = req['run']
run_opt: str = req['run'] if req.get('run') else 'no'
# clean up and convert the incoming object
# schema preserving
wfb_payload = converter.raw_wfb_to_lean_wfb(wfb_payload)
Expand Down
Loading

0 comments on commit 17abed1

Please sign in to comment.