From 19bb15b175c40af451121f65b3bfdb120b1ed50c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 5 Dec 2023 21:10:50 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Update=20main.yaml=20to=20do=20m?= =?UTF-8?q?aturin=20develop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yaml | 27 +++++++++++++++++++++++++++ extensions/vscode/package-lock.json | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index daae7ca53..793ab8d89 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -33,6 +33,9 @@ jobs: - name: Install project dependencies run: cd server && poetry install + - name: Maturin develop + run: cd server && poetry run maturin develop + - name: Run tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} @@ -216,14 +219,38 @@ jobs: with: python-version: "3.11" + - name: Create virtual environment + run: python -m venv .venv + + - name: Activate virtual environment (non-Windows) + run: | + . .venv/bin/activate + echo PATH=$PATH >> $GITHUB_ENV + if: matrix.os != 'windows-latest' + + - name: Activate virtual environment (Windows) + run: | + .venv\Scripts\activate.bat + echo PATH=$PATH >> $GITHUB_ENV + if: matrix.os == 'windows-latest' + - name: Install Pyinstaller run: | pip install pyinstaller + - name: Install Maturin + run: | + pip install maturin + - name: Install Dependencies run: | pip install -r server/requirements.txt + - name: Build the Rust library + run: | + cd server + maturin develop + - name: Install tiktoken vocab file # Done to avoid extra network request to download the vocab file run: | diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 03530b8f2..195948fd5 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.7.30", + "version": "0.6.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.7.30", + "version": "0.6.10", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10",