-
Notifications
You must be signed in to change notification settings - Fork 69
48 lines (43 loc) · 958 Bytes
/
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
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: test1
run: |
set -ex
cd ${{ env.CI_PATH }}
echo "Placeholder only"
- name: test2
run: |
cd ${{ env.CI_PATH }}
which python
echo "Placeholder only"