Skip to content

Commit

Permalink
add submodule and build Package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj-st committed Jun 21, 2024
1 parent 96825c1 commit 029046e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -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 }}
Expand Down

0 comments on commit 029046e

Please sign in to comment.