Skip to content

Commit

Permalink
use venv for pr gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed May 23, 2024
1 parent 1042a8e commit 9313356
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,25 @@ jobs:
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
apt-get update && apt-get install python3-pip curl python3-venv -y
else
yum update -y && yum install python3-pip which -y
yum update -y && yum install python3-pip which python3-virtualenv -y
fi
- name: Setup virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Install NebulaGraph-Lite
run: pip3 install .
run: |
source venv/bin/activate
pip3 install .
- name: Run NebulaGraph-Lite in container
run: nebulagraph --debug --container start
run: |
source venv/bin/activate
nebulagraph --debug --container start
e2e-jupyter-notebook:
runs-on: ubuntu-22.04
Expand All @@ -92,15 +102,24 @@ jobs:
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
apt-get update && apt-get install python3-pip curl python3-venv -y
else
yum update -y && yum install python3-pip which -y
yum update -y && yum install python3-pip which python3-virtualenv -y
fi
- name: Setup virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Install NebulaGraph-Lite
run: pip3 install .
run: |
source venv/bin/activate
pip3 install .
- name: Run Jupyter e2e test
run: |
source venv/bin/activate
pip3 install notebook nbconvert
jupyter nbconvert --to notebook --execute tests/e2e/jupyter/jupyter_test.ipynb
Expand All @@ -118,16 +137,24 @@ jobs:
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
apt-get update && apt-get install python3-pip curl python3-venv -y
else
yum update -y && yum install python3-pip which -y
yum update -y && yum install python3-pip which python3-virtualenv -y
fi
- name: Setup virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Install NebulaGraph-Lite
run: pip3 install .
run: |
source venv/bin/activate
pip3 install .
- name: Run ModelScope e2e test
run: |
source venv/bin/activate
pip3 install notebook nbconvert modelscope
jupyter nbconvert --to notebook --execute tests/e2e/jupyter/modelscope_test.ipynb
Expand Down

0 comments on commit 9313356

Please sign in to comment.