Skip to content

Commit

Permalink
Lwj/add ci (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj-st authored Jun 13, 2024
1 parent 73563fa commit 97c378a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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@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: |
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"

0 comments on commit 97c378a

Please sign in to comment.