From 4551ddc545dc3eefd358e4f89cd1601b07fbbdb3 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Tue, 23 Jul 2024 17:39:39 +0800 Subject: [PATCH] Add initialization step Signed-off-by: Luca Della Vedova --- .github/workflows/pytest.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 5ffdf16..aaf03f3 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -25,6 +25,11 @@ on: # yamllint disable-line rule:truthy default: 'colcon/ci' required: false type: string + prerun-step: + description: 'instruction to run before the testing' + default: '' + required: false + type: string secrets: CODECOV_TOKEN: description: 'token to use when running codecov action after testing' @@ -53,6 +58,8 @@ jobs: - uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} + - run: bash -c "${{ inputs.prerun-step }}" + if: ${{ inputs.prerun-step != ''}} - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }}