|
1 | 1 | # SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2 | 2 | # SPDX-License-Identifier: Apache-2.0
|
3 |
| -# |
4 |
| -# Licensed under the Apache License, Version 2.0 (the "License"); |
5 |
| -# you may not use this file except in compliance with the License. |
6 |
| -# You may obtain a copy of the License at |
7 |
| -# |
8 |
| -# http://www.apache.org/licenses/LICENSE-2.0 |
9 |
| -# |
10 |
| -# Unless required by applicable law or agreed to in writing, software |
11 |
| -# distributed under the License is distributed on an "AS IS" BASIS, |
12 |
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 |
| -# See the License for the specific language governing permissions and |
14 |
| -# limitations under the License. |
15 | 3 |
|
16 |
| -name: NVIDIA Test Github Validation |
| 4 | +name: NVIDIA Github Validation |
17 | 5 |
|
18 | 6 | on:
|
19 | 7 | push:
|
20 | 8 | branches:
|
21 | 9 | - main
|
22 | 10 | pull_request:
|
23 | 11 |
|
| 12 | +# Do not cancel main branch runs |
| 13 | +concurrency: |
| 14 | + group: dynamo-build-test-${{ github.ref_name || github.run_id }} |
| 15 | + cancel-in-progress: ${{ github.ref_name != 'main' }} |
| 16 | + |
24 | 17 | jobs:
|
25 | 18 | build-test:
|
26 | 19 | runs-on:
|
|
53 | 46 | docker compose up -d nats-server etcd-server
|
54 | 47 | - name: Run Rust checks (block-manager + integration tests)
|
55 | 48 | run: |
|
56 |
| - docker run -v ${{ github.workspace }}:/workspace -w /workspace/lib/llm --name ${{ env.CONTAINER_ID }}_rust_checks ${{ steps.define_image_tag.outputs.image_tag }} bash -ec 'rustup component add rustfmt clippy && cargo fmt -- --check && cargo clippy --features block-manager --no-deps --all-targets -- -D warnings && cargo test --locked --all-targets --features=block-manager && cargo test --locked --features integration -- --nocapture' |
| 49 | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace/lib/llm \ |
| 50 | + --name ${{ env.CONTAINER_ID }}_rust_checks \ |
| 51 | + ${{ steps.define_image_tag.outputs.image_tag }} \ |
| 52 | + bash -ec 'rustup component add rustfmt clippy && \ |
| 53 | + cargo fmt -- --check && \ |
| 54 | + cargo clippy --features block-manager --no-deps --all-targets -- -D warnings && \ |
| 55 | + cargo test --locked --all-targets --features=block-manager && \ |
| 56 | + cargo test --locked --features integration -- --nocapture' |
57 | 57 | - name: Cleanup services
|
58 | 58 | if: always()
|
59 | 59 | working-directory: ./deploy
|
|
63 | 63 | env:
|
64 | 64 | PYTEST_MARKS: "pre_merge or mypy"
|
65 | 65 | run: |
|
66 |
| - docker run -v ${{ github.workspace }}:/workspace -w /workspace --name ${{ env.CONTAINER_ID }}_pytest ${{ steps.define_image_tag.outputs.image_tag }} bash -c "pytest --basetemp=/tmp --junitxml=${{ env.PYTEST_XML_FILE }} -m \"${{ env.PYTEST_MARKS }}\"" |
| 66 | + docker run -v ${{ github.workspace }}:/workspace -w /workspace \ |
| 67 | + --name ${{ env.CONTAINER_ID }}_pytest \ |
| 68 | + ${{ steps.define_image_tag.outputs.image_tag }} \ |
| 69 | + bash -c "pytest --basetemp=/tmp --junitxml=${{ env.PYTEST_XML_FILE }} -m \"${{ env.PYTEST_MARKS }}\"" |
67 | 70 | - name: Copy test report from test Container
|
68 | 71 | if: always()
|
69 | 72 | run: |
|
|
0 commit comments