💚 Update main.yaml to do maturin develop
This commit is contained in:
parent
cbcb4c3ba7
commit
19bb15b175
2 changed files with 29 additions and 2 deletions
27
.github/workflows/main.yaml
vendored
27
.github/workflows/main.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue