diff --git a/.github/workflows/on_target.yml b/.github/workflows/on_target.yml index 4a9b5946..79220eb9 100644 --- a/.github/workflows/on_target.yml +++ b/.github/workflows/on_target.yml @@ -92,7 +92,14 @@ jobs: working-directory: thingy91x-oob/tests/on_target run: | mkdir -p results - pytest -v ${{ inputs.pytest_marker }} \ + + if [ "${{ inputs.pytest_marker }}" == "no_markers_flag" ]; then + real_pytest_marker="" + else + real_pytest_marker="${{ inputs.pytest_marker }}" + fi + + pytest -v $real_pytest_marker \ --junit-xml=results/test-results.xml \ --html=results/test-results.html --self-contained-html \ ${{ inputs.pytest_path }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8cfe30c..5f5bf3ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: default: -m "not slow" schedule: - - cron: "0 0 * * *" + - cron: "50 13 * * *" push: branches: - main @@ -35,4 +35,4 @@ jobs: with: artifact_fw_version: ${{ needs.build.outputs.version }} artifact_run_id: ${{ needs.build.outputs.run_id }} - pytest_marker: ${{ inputs.pytest_marker || (github.event_name == 'schedule' && '') || (github.event_name == 'push' && '-m "not slow"') }} + pytest_marker: ${{ inputs.pytest_marker || (github.event_name == 'schedule' && 'no_markers_flag') || (github.event_name == 'push' && '-m "not slow"') }}