Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
996077f4
Unverified
Commit
996077f4
authored
Jan 07, 2026
by
Pavithra Vijayakrishnan
Committed by
GitHub
Jan 07, 2026
Browse files
ci: Run the same tests across Github and Gitlab CI for premerge (#5082)
Signed-off-by:
pvijayakrish
<
pvijayakrish@nvidia.com
>
parent
975870d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
.github/actions/pytest/action.yml
.github/actions/pytest/action.yml
+10
-1
.github/workflows/container-validation-backends.yml
.github/workflows/container-validation-backends.yml
+3
-0
.github/workflows/container-validation-dynamo.yml
.github/workflows/container-validation-dynamo.yml
+3
-3
No files found.
.github/actions/pytest/action.yml
View file @
996077f4
...
...
@@ -32,6 +32,10 @@ inputs:
description
:
'
Start
MinIO
service
for
LoRA
tests
(true/false)'
required
:
false
default
:
'
true'
enable_mypy
:
description
:
'
Enable
mypy
type
checking
during
test
run
(true/false)'
required
:
false
default
:
'
false'
runs
:
...
...
@@ -110,7 +114,12 @@ runs:
PYTEST_CMD="pytest -v --collect-only -m \"${{ inputs.pytest_marks }}\""
else
echo "🚀 Running pytest in normal mode"
PYTEST_CMD="pytest -v --tb=short --basetemp=/tmp -o cache_dir=/tmp/.pytest_cache --junitxml=/workspace/test-results/${{ env.PYTEST_XML_FILE }} --durations=10 -m \"${{ inputs.pytest_marks }}\""
MYPY_FLAG=""
if [[ "${{ inputs.enable_mypy }}" == "true" ]]; then
echo "🔍 Mypy type checking enabled"
MYPY_FLAG="--mypy"
fi
PYTEST_CMD="pytest -v --tb=short --basetemp=/tmp -o cache_dir=/tmp/.pytest_cache --junitxml=/workspace/test-results/${{ env.PYTEST_XML_FILE }} --durations=10 ${MYPY_FLAG} -m \"${{ inputs.pytest_marks }}\""
# Detect GPU availability and conditionally add GPU flags
GPU_FLAGS=""
...
...
.github/workflows/container-validation-backends.yml
View file @
996077f4
...
...
@@ -198,6 +198,7 @@ jobs:
framework
:
"
vllm"
test_type
:
"
pre_merge"
platform_arch
:
${{ matrix.platform.arch }}
enable_mypy
:
'
true'
sglang
:
needs
:
changed-files
...
...
@@ -259,6 +260,7 @@ jobs:
framework
:
"
sglang"
test_type
:
"
pre_merge"
platform_arch
:
${{ matrix.platform.arch }}
enable_mypy
:
'
true'
trtllm
:
needs
:
changed-files
...
...
@@ -320,6 +322,7 @@ jobs:
framework
:
"
trtllm"
test_type
:
"
pre_merge"
platform_arch
:
${{ matrix.platform.arch }}
enable_mypy
:
'
true'
deploy-operator
:
runs-on
:
cpu-amd-m5-2xlarge
...
...
.github/workflows/container-validation-dynamo.yml
View file @
996077f4
...
...
@@ -97,19 +97,19 @@ jobs:
docker run -w /workspace \
--name ${{ env.CONTAINER_ID }}_pytest_parallel \
${{ steps.define_image_tag.outputs.image_tag }} \
bash -c "pytest --basetemp=/tmp/pytest-parallel --junitxml=${{ env.PYTEST_PARALLEL_XML_FILE }} -n 4 -m \"${{ env.PYTEST_MARKS }}\""
bash -c "pytest
--mypy
--basetemp=/tmp/pytest-parallel --junitxml=${{ env.PYTEST_PARALLEL_XML_FILE }} -n 4 -m \"${{ env.PYTEST_MARKS }}\""
-
name
:
Copy parallel test report from Container
if
:
always()
run
:
|
docker cp ${{ env.CONTAINER_ID }}_pytest_parallel:/workspace/${{ env.PYTEST_PARALLEL_XML_FILE }} . || echo "No parallel test report found"
-
name
:
Run pytest (sequential tests)
env
:
PYTEST_MARKS
:
"
((
pre_merge
and
not
parallel
)
or
mypy)
and
not
(vllm
or
sglang
or
trtllm)
and
(gpu_0
or
gpu_1)"
PYTEST_MARKS
:
"
pre_merge
and
not
parallel
and
not
(vllm
or
sglang
or
trtllm)
and
(gpu_0
or
gpu_1)"
run
:
|
docker run -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 }}\" "
bash -c "pytest
--mypy
--basetemp=/tmp --junitxml=${{ env.PYTEST_XML_FILE }} -m \"${{ env.PYTEST_MARKS }}\" "
-
name
:
Copy test report from test Container
if
:
always()
run
:
|
...
...
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