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: ...@@ -36,6 +36,8 @@ inputs:
description: 'Enable mypy type checking during test run (true/false)' description: 'Enable mypy type checking during test run (true/false)'
required: false required: false
default: 'false' default: 'false'
hf_token:
required: false
runs: runs:
...@@ -103,6 +105,7 @@ runs: ...@@ -103,6 +105,7 @@ runs:
CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }} CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}
PYTEST_XML_FILE: pytest_test_report.xml PYTEST_XML_FILE: pytest_test_report.xml
HF_HOME: /runner/_work/_temp HF_HOME: /runner/_work/_temp
HF_TOKEN: ${{ inputs.hf_token }}
run: | run: |
# Run pytest with detailed output and JUnit XML # Run pytest with detailed output and JUnit XML
set +e # Don't exit on test failures set +e # Don't exit on test failures
......
...@@ -199,6 +199,7 @@ jobs: ...@@ -199,6 +199,7 @@ jobs:
test_type: "pre_merge" test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }} platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true' enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
sglang: sglang:
needs: changed-files needs: changed-files
...@@ -263,6 +264,7 @@ jobs: ...@@ -263,6 +264,7 @@ jobs:
test_type: "pre_merge" test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }} platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true' enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
trtllm: trtllm:
needs: changed-files needs: changed-files
...@@ -327,6 +329,7 @@ jobs: ...@@ -327,6 +329,7 @@ jobs:
test_type: "pre_merge" test_type: "pre_merge"
platform_arch: ${{ matrix.platform.arch }} platform_arch: ${{ matrix.platform.arch }}
enable_mypy: 'true' enable_mypy: 'true'
hf_token: ${{ secrets.HF_TOKEN }}
deploy-operator: deploy-operator:
runs-on: cpu-amd-m5-2xlarge 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