Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
ee4ef06b
"lib/engines/python/src/lib.rs" did not exist on "12714d90807993a17718c6ef6ee357f757b9177c"
Commit
ee4ef06b
authored
Mar 05, 2025
by
Harrison Saturley-Hall
Committed by
GitHub
Mar 05, 2025
Browse files
ci: Add python "pre-merge" tests when merging to main (#19)
parent
5ddc7f7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
.github/workflows/main_validation.yaml
.github/workflows/main_validation.yaml
+21
-2
No files found.
.github/workflows/
cache_image
.yaml
→
.github/workflows/
main_validation
.yaml
View file @
ee4ef06b
# SPDX-FileCopyrightText: Copyright (c)
2024-
2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
name
:
Cache base image
name
:
Main Branch Validation
on
:
on
:
push
:
push
:
...
@@ -30,7 +30,9 @@ jobs:
...
@@ -30,7 +30,9 @@ jobs:
-
vllm
-
vllm
name
:
Build and Test - ${{ matrix.framework }}
name
:
Build and Test - ${{ matrix.framework }}
env
:
env
:
CONTAINER_ID
:
test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}_${{ matrix.framework }}
IMAGE_TAG
:
ghcr.io/dynemo-ai/dynemo:latest-${{ matrix.framework }}
IMAGE_TAG
:
ghcr.io/dynemo-ai/dynemo:latest-${{ matrix.framework }}
PYTEST_XML_FILE
:
pytest_test_report.xml
steps
:
steps
:
-
name
:
Checkout repository
-
name
:
Checkout repository
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
...
@@ -55,3 +57,20 @@ jobs:
...
@@ -55,3 +57,20 @@ jobs:
CACHE_TO
:
"
type=registry,ref=${{
steps.which_cache.outputs.cache_to_location
}},image-manifest=true,mode=max"
CACHE_TO
:
"
type=registry,ref=${{
steps.which_cache.outputs.cache_to_location
}},image-manifest=true,mode=max"
run
:
|
run
:
|
./container/build.sh --tag ${{ env.IMAGE_TAG }} --framework ${{ matrix.framework }} --cache-from "${{ env.CACHE_FROM }}" --cache-to "${{ env.CACHE_TO }}"
./container/build.sh --tag ${{ env.IMAGE_TAG }} --framework ${{ matrix.framework }} --cache-from "${{ env.CACHE_FROM }}" --cache-to "${{ env.CACHE_TO }}"
-
name
:
Run pytest
env
:
PYTEST_MARKS
:
"
pre_merge
or
mypy"
run
:
|
docker run -w /workspace --name ${{ env.CONTAINER_ID }} ${{ env.IMAGE_TAG }} pytest --basetemp=/tmp --junitxml=${{ env.PYTEST_XML_FILE }} -m "${{ env.PYTEST_MARKS }}"
-
name
:
Copy test report from test Container
if
:
always()
run
:
|
docker cp ${{ env.CONTAINER_ID }}:/workspace/${{ env.PYTEST_XML_FILE }} .
-
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 }}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment