Skip to content

Commit

Permalink
💚 Update main.yaml to do maturin develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Dec 6, 2023
1 parent cbcb4c3 commit 19bb15b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19bb15b

Please sign in to comment.