Skip to content

Commit d210dfd

Browse files
committed
fix gpt_test.yml
Signed-off-by: Kinjal Patel <kinjalpravin@nvidia.com>
1 parent e42ecc2 commit d210dfd

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/gpu_tests.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,26 @@ jobs:
6161
HF_TOKEN: ${{ secrets.HF_TOKEN }}
6262
steps:
6363
- uses: actions/checkout@v6
64-
- uses: ./.github/actions/gpu-test-run
64+
- uses: nv-gha-runners/setup-proxy-cache@main
65+
- name: Setup environment variables
66+
run: |
67+
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/include:/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
68+
- name: Run gpu tests
69+
env:
70+
COVERAGE_PROCESS_START: ${{ github.workspace }}/pyproject.toml
71+
COVERAGE_FILE: ${{ github.workspace }}/.coverage
72+
run: |
73+
python3 -m pip install nox && nox -s ${{ matrix.example }}
74+
- name: Upload GPU coverage to Codecov
75+
uses: codecov/codecov-action@v5
6576
with:
66-
example: ${{ matrix.example }}
67-
codecov_token: ${{ secrets.CODECOV_TOKEN }}
77+
token: ${{ secrets.CODECOV_TOKEN }}
78+
files: coverage.xml
79+
flags: gpu
80+
fail_ci_if_error: false # test may be skipped if relevant file changes are not detected
81+
verbose: true
6882

69-
# Docker Hub image: anonymous pull (no ``credentials:``) and no coverage
83+
# Docker Hub image: anonymous pull and no coverage
7084
gpu-tests-vllm:
7185
needs: [pr-gate]
7286
if: needs.pr-gate.outputs.any_changed == 'true'
@@ -81,10 +95,13 @@ jobs:
8195
HF_TOKEN: ${{ secrets.HF_TOKEN }}
8296
steps:
8397
- uses: actions/checkout@v6
84-
- uses: ./.github/actions/gpu-test-run
85-
with:
86-
example: gpu_vllm
87-
with_coverage: "false"
98+
- uses: nv-gha-runners/setup-proxy-cache@main
99+
- name: Setup environment variables
100+
run: |
101+
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/include:/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
102+
- name: Run gpu tests
103+
run: |
104+
python3 -m pip install nox && nox -s gpu_vllm
88105
89106
gpu-pr-required-check:
90107
# Run even if any of the gpu jobs is skipped

0 commit comments

Comments
 (0)