Unverified Commit fcb76854 authored by Dmitry Tokarev's avatar Dmitry Tokarev Committed by GitHub
Browse files

fix: add HF_TOKEN to pytests (#5298)


Signed-off-by: default avatarDmitry Tokarev <dtokarev@nvidia.com>
parent 3d67474e
......@@ -36,6 +36,8 @@ inputs:
description: 'Enable mypy type checking during test run (true/false)'
required: false
default: 'false'
hf_token:
required: false
runs:
......@@ -103,6 +105,7 @@ runs:
CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}
PYTEST_XML_FILE: pytest_test_report.xml
HF_HOME: /runner/_work/_temp
HF_TOKEN: ${{ inputs.hf_token }}
run: |
# Run pytest with detailed output and JUnit XML
set +e # Don't exit on test failures
......
......@@ -199,6 +199,7 @@ jobs:
test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
sglang:
needs: changed-files
......@@ -263,6 +264,7 @@ jobs:
test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
trtllm:
needs: changed-files
......@@ -327,6 +329,7 @@ jobs:
test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
deploy-operator:
runs-on: cpu-amd-m5-2xlarge
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment