OasisLMF/OasisPiWind

Added update expected results option to CI workflow

Closed this issue · 0 comments

Add --update-results flag to pytest, this should bypass the output checks and instead extract the result tars to the expected output directories.

Setting an option on a manual job trigger update-results=True should use pytest_opts to pass that option to pytest

pytest_opts:
description: 'pass extra options to pytest'
required: false
type: string

with:
piwind_branch: ${{ needs.params.outputs.piwind_branch }}
ods_package: ${{ needs.params.outputs.ods_package }}
oasislmf_package: ${{ needs.params.outputs.oasislmf_package }}
oasislmf_branch: ${{ needs.params.outputs.oasislmf_branch }}
worker_tag: ${{ needs.params.outputs.platform_version }}
server_tag: ${{ needs.params.outputs.platform_version }}
debug_mode: 0

    with:
      pytest_opts: '--update-results'
        ..

See: #119 (comment) and #119 (comment)