-
Notifications
You must be signed in to change notification settings - Fork 69
50 lines (45 loc) · 1003 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
49
50
name: LazyLLM ci
on:
workflow_dispatch:
push:
branches:
- main
- lwj/add_CI
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- ".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@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: Create custom directory
run: |
set -ex
echo ${{ env.CI_PATH }}
mkdir -p ${{ env.CI_PATH }}
- name: Move code to custom directory
run: mv $GITHUB_WORKSPACE/* ${{ env.CI_PATH }}/
test:
runs-on: tps_sco_nv
needs: [Clone]
steps:
- name: test1
run: |
pwd
ls
whoami
- name: test2
run: |
cd ${{ env.CI_PATH }}
which python
pip list --format=freeze