Skip to content

Update test_report.yaml #19

Update test_report.yaml

Update test_report.yaml #19

# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: NVIDIA Test Github Validation
on:
push:
branches:
- main
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
framework:
- vllm
name: Build and Test - ${{ matrix.framework }}
env:
CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}_${{ matrix.framework }}
PYTEST_XML_FILE: pytest_test_report.xml
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run pytest
env:
PYTEST_MARKS: "pre_merge or mypy"
- run: |
pip install -r container/deps/requirements.test.txt
pytest -v --md-report --md-report-flavor gfm --md-report-exclude-outcomes passed skipped xpassed --md-report-output ${{ env.PYTEST_MD_FILE }} --junitxml=${{ env.PYTEST_XML_FILE }} success_test.py
- run: ls -al
if: always()
- name: Archive test report
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.framework }}-python-test-results
if-no-files-found: error
path: |
${{ env.PYTEST_XML_FILE }}