ci: 💚 fix file structure for pyinstaller, main.yaml updates

This commit is contained in:
Nate Sesti 2023-07-31 22:27:08 -07:00
parent fa221af037
commit e18df47cee
5 changed files with 28 additions and 13 deletions

View file

@ -18,14 +18,23 @@ jobs:
- name: Check-out repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10" # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Python dependencies
run: |
cd continuedev
poetry install
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10" # Version range or exact version of a Python version to use, using SemVer's version range syntax
# architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
# cache: "pip"
# cache-dependency-path: |
# **/requirements*.txt
- name: Install Dependencies
run: |
@ -35,7 +44,7 @@ jobs:
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: kasa_cli
script-name: continuedev/src/run.py
onefile: true
- name: Upload Artifacts

5
continuedev/main.py Normal file
View file

@ -0,0 +1,5 @@
from .src.continuedev.server.main import run_server
def main():
run_server()

View file

@ -3,6 +3,7 @@ from typing import Dict, List, Union
from ...core.main import ChatMessage
from .templating import render_templated_string
from ...libs.llm import LLM
from tiktoken_ext import openai_public
import tiktoken
# TODO move many of these into specific LLM.properties() function that

View file

@ -1,4 +0,0 @@
from continuedev.server.main import run_server
if __name__ == "__main__":
run_server()

4
run.py Normal file
View file

@ -0,0 +1,4 @@
from continuedev.main import main
if __name__ == "__main__":
main()