Skip to content

ete_test

ete_test #293

Workflow file for this run

name: ete_test
permissions:
contents: write
pages: write
on:
workflow_dispatch:
inputs:
repo_org:
required: false
description: 'Tested repository organization name. Default is InternLM'
type: string
default: 'InternLM/xtuner'
repo_ref:
required: false
description: 'Set branch or tag or commit id. Default is "main"'
type: string
default: 'main'
run_case:
required: false
description: 'Run a specific test case, e.g., "qwen3-rl-lmdeploy", as defined in autotest/config.yaml.'
type: string
default: 'all'
schedule:
- cron: '00 22 * * 0-4'
jobs:
ete_test:
if: ${{!cancelled() }}
runs-on: [h_cluster_ete]
timeout-minutes: 720
steps:
- name: Clean workdir
run: sudo git clean -ffdx
- name: Clone repository
uses: actions/checkout@v2
with:
repository: ${{ github.event.inputs.repo_org || 'InternLM/xtuner' }}
ref: ${{github.event.inputs.repo_ref || 'main'}}
- name: run-test
run: |
source /mnt/shared-storage-user/opencompass-shared/qa-llm-cicd/miniconda3/bin/activate
conda activate clusterx
conda env list
unset HTTP_PROXY;unset HTTPS_PROXY;unset http_proxy;unset https_proxy;
CASE_NAME="${{ github.event.inputs.run_case || 'all' }}"
if [ "$CASE_NAME" = "all" ]; then
pytest autotest/test_all.py -m all -n 1 -vv --run_id ${{ github.run_id }}
else
pytest autotest/test_all.py::test_all[$CASE_NAME] -m all -n 1 -vv --run_id ${{ github.run_id }}
fi
- name: Upload Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/${{ github.run_id }}
if-no-files-found: ignore
retention-days: 7
name: xtuner-e2e-${{ github.run_id }}
- name: Copy deploy action
if: ${{ !cancelled() }}
run: cp -r ../JamesIves ./
- name: Deploy to GitHub Pages
if: ${{ !cancelled() }}
uses: ./JamesIves/github-pages-deploy-action/v4
with:
token: ${{ github.token }}
branch: gh-pages
folder: ./${{ github.run_id }}
target-folder: ${{ github.run_id }}