Organize Pytest Examples And Add them to CI #128
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LazyLLM ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
- ".git*" | |
env: | |
CI_PATH: '/home/mnt/platform_ci/GitHub/${{ github.repository }}/${GITHUB_RUN_NUMBER}' | |
jobs: | |
Clone: | |
runs-on: tps_sco_nv | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Create custom directory | |
run: | | |
set -ex | |
echo ${{ env.CI_PATH }} | |
mkdir -p ${{ env.CI_PATH }} | |
- name: Move code to custom directory | |
run: | | |
set -ex | |
mv $GITHUB_WORKSPACE/* ${{ env.CI_PATH }}/ | |
Test: | |
runs-on: tps_sco_nv | |
needs: [Clone] | |
steps: | |
- name: BasicTests | |
run: | | |
set -ex | |
cd ${{ env.CI_PATH }} | |
ls -alh | |
export LAZYLLM_DEFAULT_LAUNCHER=sco | |
export LAZYLLM_SLURM_PART=a100 | |
export PYTHONPATH=$PWD:$PYTHONPATH | |
export LAZYLLM_SCO_WORKSPACE=expert-services | |
export LAZYLLM_DATA_PATH=/mnt/lustre/share_data/lazyllm/data/ | |
export LAZYLLM_MODEL_PATH=/mnt/lustre/share_data/lazyllm/models | |
source activate lazyllm && env | grep '^SCC' && python -m pytest tests/basic_tests/ | |
echo "Placeholder only" | |
- name: AdvancedTests | |
run: | | |
cd ${{ env.CI_PATH }} | |
which python | |
echo "Placeholder only" |