Skip to content

Commit

Permalink
Merge pull request #40 from nebula-contrib/ci_modelscope
Browse files Browse the repository at this point in the history
trying to restore modelscope ci
  • Loading branch information
wey-gu authored Mar 5, 2024
2 parents 69ad455 + ab99cb0 commit 6bcc073
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 34 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,34 +100,32 @@ jobs:
pip3 install notebook nbconvert
jupyter nbconvert --to notebook --execute tests/e2e/jupyter/jupyter_test.ipynb
# I give up on this one, it's too hard to get it working to emulate the modelscope environment...
#
# e2e-modelscope-notebook:
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# image: ["ubuntu:20.04"]
# container:
# image: ${{ matrix.image }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
e2e-modelscope-notebook:
runs-on: ubuntu-22.04
strategy:
matrix:
image: ["ubuntu:20.04"]
container:
image: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3

# - name: Install Dependencies
# run: |
# if grep -qEi "debian|buntu" /etc/*release; then
# apt-get update && apt-get install python3-pip curl -y
# else
# yum update -y && yum install python3-pip which -y
# fi
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
else
yum update -y && yum install python3-pip which -y
fi
# - name: Install NebulaGraph-Lite
# run: pip3 install .
- name: Install NebulaGraph-Lite
run: pip3 install .

# - name: Run ModelScope e2e test
# run: |
# pip3 install notebook nbconvert modelscope
# jupyter nbconvert --to notebook --execute tests/e2e/jupyter/modelscope_test.ipynb
- name: Run ModelScope e2e test
run: |
pip3 install notebook nbconvert modelscope
jupyter nbconvert --to notebook --execute tests/e2e/jupyter/modelscope_test.ipynb
# e2e-alpine:
Expand Down
9 changes: 0 additions & 9 deletions tests/e2e/jupyter/modelscope_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,6 @@
"source": [
"%ng_draw"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "FKXupDbtVS1Q"
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 6bcc073

Please sign in to comment.