Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GA] fail status for example workflow #3015

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ on:
inputs:
pull_request_number:
description: 'The pull request number'
required: true
type: number
default: ''
pytest_args:
description: 'Pytest arguments'
default: ''
type: string

jobs:
examples-cpu:
Expand All @@ -32,7 +30,7 @@ jobs:
lfs: true
fetch-depth: 0 # Fetch full history to allow checking out any branch or PR
- name: Fetch and Checkout the Pull Request Branch
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pull_request_number != '' }}
run: |
git fetch origin pull/${{ github.event.inputs.pull_request_number }}/head:pr-${{ github.event.inputs.pull_request_number }}
git checkout pr-${{ github.event.inputs.pull_request_number }}
Expand All @@ -49,7 +47,6 @@ jobs:
- name: Print installed modules
run: pip list
- name: Run examples test scope
continue-on-error: true
run: |
python -m pytest -ras tests/cross_fw/examples \
--junit-xml=pytest-results-${{ matrix.group }}.xml \
Expand All @@ -62,6 +59,7 @@ jobs:
TQDM_DISABLE: 1
- name: Upload artifact
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: pytest-results-${{ matrix.group }}
path: pytest-results-${{ matrix.group }}.xml
Expand Down
Loading