-
Notifications
You must be signed in to change notification settings - Fork 68
60 lines (54 loc) · 1.49 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 }}
echo "hihihihihihihihihihihihi"
conda info -e
echo "hihihihihihihihihihihihi"
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"