Skip to content

Commit

Permalink
Merge branch 'main' into gopt_integration_test
Browse files Browse the repository at this point in the history
  • Loading branch information
BingqingLyu authored Jun 7, 2024
2 parents 32df64e + 9ff8c34 commit 960c650
Show file tree
Hide file tree
Showing 356 changed files with 23,539 additions and 30,542 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GraphScope Flex CI (Dummy)
name: Flex Interactive CI (Dummy)

on:
pull_request:
Expand All @@ -7,15 +7,15 @@ on:
paths:
- '**'
- '!flex/**'
- '!.github/workflows/flex.yml'
- '!.github/workflows/flex-interactive.yml'

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build-gae:
build:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- run: 'echo "No action required" '
- run: 'echo "No action required" '
64 changes: 64 additions & 0 deletions .github/workflows/flex-interactive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Flex Interactive CI

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
workflow_dispatch:
push:
branches:
- main
paths:
- 'flex/**'
- '.github/workflows/flex-interactive.yml'
pull_request:
branches:
- main
paths:
- 'flex/**'
- '.github/workflows/flex-interactive.yml'

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
api-test:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Add envs to GITHUB_ENV
run: |
short_sha=$(git rev-parse --short HEAD)
echo "SHORT_SHA=${short_sha}" >> $GITHUB_ENV
- name: Build Image
run: |
cd ${GITHUB_WORKSPACE}/python
python3 -m pip install --upgrade pip && python3 -m pip install -r requirements.txt && python3 setup.py build_proto
cd ${GITHUB_WORKSPACE}
python3 ./gsctl.py flexbuild interactive --app docker
- name: Build gsctl Wheel Package
run: |
cd ${GITHUB_WORKSPACE}/python
python3 setup_gsctl.py bdist_wheel
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: false

- name: Test
run: |
# install gsctl
python3 -m pip install ${GITHUB_WORKSPACE}/python/dist/*.whl
# launch service: 8080 for coordinator http port; 7687 for cypher port;
docker run -p 8080:8080 -p 7688:7687 registry.cn-hongkong.aliyuncs.com/graphscope/interactive:${SHORT_SHA}-x86_64 --enable-coordinator &
sleep 20
# test
python3 -m pip install --no-cache-dir pytest pytest-xdist
python3 -m pytest -d --tx popen//python=python3 \
-s -v \
$(dirname $(python3 -c "import graphscope.gsctl as gsctl; print(gsctl.__file__)"))/tests/test_interactive.py
214 changes: 0 additions & 214 deletions .github/workflows/flex.yml

This file was deleted.

Loading

0 comments on commit 960c650

Please sign in to comment.