From ab99cb02d9352b1d5b6bb11c19d0ed63aa164a72 Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Tue, 5 Mar 2024 16:54:49 +0000 Subject: [PATCH] trying to restore modelscope ci --- .github/workflows/pr.yaml | 48 ++++++++++++------------- tests/e2e/jupyter/modelscope_test.ipynb | 9 ----- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 356d2fd..99f50af 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -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: diff --git a/tests/e2e/jupyter/modelscope_test.ipynb b/tests/e2e/jupyter/modelscope_test.ipynb index 5f18439..3d4dc94 100644 --- a/tests/e2e/jupyter/modelscope_test.ipynb +++ b/tests/e2e/jupyter/modelscope_test.ipynb @@ -188,15 +188,6 @@ "source": [ "%ng_draw" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "FKXupDbtVS1Q" - }, - "outputs": [], - "source": [] } ], "metadata": {