Skip to content

Commit

Permalink
Merge pull request RIOT-OS#18713 from miri64/release-tests/enh/github…
Browse files Browse the repository at this point in the history
…-comment

release-tests: add capability to run on PR comment
  • Loading branch information
kaspar030 committed Oct 8, 2022
2 parents cf0432f + cc32be4 commit abf0883
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ name: release-tests
# dispatch.

on:
pull_request_review:
types:
- submitted
schedule:
- cron: '0 3 * * 6'
push:
Expand Down Expand Up @@ -45,6 +48,7 @@ env:
jobs:
tasks:
runs-on: ubuntu-22.04
if: ${{ !github.event.review || (contains(github.event.review.body, '@riot-ci do release tests'))}}
timeout-minutes: 360
strategy:
fail-fast: false
Expand Down Expand Up @@ -132,6 +136,10 @@ jobs:
fi
if [ -n "${{ github.event.inputs.filter }}" ]; then
K="-k"
FILTER="${{ github.event.inputs.filter }}"
elif echo '${{ github.event.review.body }}' | tr '\n' ' ' | grep -i '@riot-ci do release tests with "[^"]\+"'; then
K="-k"
FILTER="$(echo '${{ github.event.review.body }}' | tr '\n' ' ' | sed 's/.*@riot-ci do release tests with "\([^"]\+\)".*/\1/i')"
fi
cd Release-Specs
Expand All @@ -154,9 +162,10 @@ jobs:
TTN_APP_ID="release-tests" \
TTN_DEV_ID="eui-70b3d57ed00463e7-otaa" \
TTN_DEV_ID_ABP="eui-70b3d57ed0046d5d-abp" \
PULL_REQUEST="${{ github.event.issue.pull_request.html_url }}" \
RIOTBASE=${RIOTBASE} \
$(which tox) -e test -- ${TOX_ARGS} \
${K} "${{ github.event.inputs.filter }}" -m "${{ matrix.pytest_mark }}"
${K} "${FILTER}" -m "${{ matrix.pytest_mark }}"
- name: junit2html and XML deploy
if: always()
run: |
Expand Down

0 comments on commit abf0883

Please sign in to comment.