Skip to content

Commit

Permalink
add poetry install
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj-st committed Sep 23, 2024
1 parent affe00f commit 5602df6
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/poetry_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build and Test on macOS and Windows

on:
push:
branches:
- main
- lwj/poetry_install
pull_request:
branches:
- main

env:
POETRY_VERSION: "1.8.3"

jobs:
build-test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macOS-latest, windows-latest]
python-version: ['3.10', 3.11, 3.12]

steps:
# 检出代码仓库
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

# 复制 poetry.lock 文件到根目录
- name: Copy poetry.lock to root directory
run: cp LazyLLM-Env/poetry.lock .

# 设置 Python 版本
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

# 安装 Poetry
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}

# # 安装依赖
# - name: Install dependencies
# run: poetry install

# 构建项目
- name: Build project with Poetry
run: |
poetry build
# 查看构建文件
- name: List dist directory
run: ls dist

# 安装生成的 wheel 文件
- name: Install the built package
run: |
pip install dist/lazyllm*.whl

0 comments on commit 5602df6

Please sign in to comment.