Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,44 @@ jobs:



e2e-test-unit:
name: Unit & utils tests (pytest, in-image)
needs: pre-commit
# Always-on regression gate (like e2e-test-plugin-contracts): runs on every
# PR synchronize/label and on manual dispatch, no run-ci-* label required.
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Execute
shell: bash
run: |
# Run inside the CI image: it ships megatron + torch, which the
# tests/unit/backends/megatron_utils/update_weight tests need at
# import time. CPU/mock only -> no --gpus / no GPU lock.
docker run --rm \
--network host \
--ipc=host \
--shm-size=16g \
-e http_proxy \
-e https_proxy \
-e HTTP_PROXY \
-e HTTPS_PROXY \
-v "$GITHUB_WORKSPACE:$GITHUB_WORKSPACE" \
-w "$GITHUB_WORKSPACE" \
inferactinc/public:vime-vllm-cu129-latest \
bash -lc '
set -euo pipefail
pip install -e . --no-deps --break-system-packages
pip install -q pytest --break-system-packages
python -m pytest tests/unit tests/utils
'

e2e-test-changed-detect:
needs: pre-commit
if: (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-changed'))
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/pr-test.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,44 @@ jobs:
<% endif %>
<% endfor %>

e2e-test-unit:
name: Unit & utils tests (pytest, in-image)
needs: pre-commit
# Always-on regression gate (like e2e-test-plugin-contracts): runs on every
# PR synchronize/label and on manual dispatch, no run-ci-* label required.
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Execute
shell: bash
run: |
# Run inside the CI image: it ships megatron + torch, which the
# tests/unit/backends/megatron_utils/update_weight tests need at
# import time. CPU/mock only -> no --gpus / no GPU lock.
docker run --rm \
--network host \
--ipc=host \
--shm-size=16g \
-e http_proxy \
-e https_proxy \
-e HTTP_PROXY \
-e HTTPS_PROXY \
-v "$GITHUB_WORKSPACE:$GITHUB_WORKSPACE" \
-w "$GITHUB_WORKSPACE" \
inferactinc/public:vime-vllm-cu129-latest \
bash -lc '
set -euo pipefail
pip install -e . --no-deps --break-system-packages
pip install -q pytest --break-system-packages
python -m pytest tests/unit tests/utils
'

e2e-test-changed-detect:
needs: pre-commit
if: (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-changed'))
Expand Down
Loading