From 029046eec43e4ae8fdeaf1f92bbf44afa0eddeb4 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 21 Jun 2024 18:34:32 +0800 Subject: [PATCH] add submodule and build Package workflow --- .github/workflows/lint.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 70aa3be8..40ee1211 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,6 @@ on: jobs: lint: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 @@ -36,26 +35,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + - name: Set up python uses: actions/setup-python@v5 with: python-version: '3.10.9' + - name: Install Poetry uses: snok/install-poetry@v1 with: version: ${{ env.POETRY_VERSION }} + - name: Install deps shell: bash - run: | - pwd - ls - cp LazyLLM-Env/poetry.lock . && poetry install + run: cp LazyLLM-Env/poetry.lock . && poetry install + - name: Build shell: bash run: poetry build + - name: Test installing built package shell: bash run: python -m pip install . + - name: Test import shell: bash working-directory: ${{ vars.RUNNER_TEMP }}