fix: Fix CI failure when building manylinux image #784
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**' | |
- 'coordinator/gscoordinator/flex/**' | |
- 'python/graphscope/gsctl/**' | |
- '.github/workflows/flex-interactive.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'flex/**' | |
- 'coordinator/gscoordinator/flex/**' | |
- 'python/graphscope/gsctl/**' | |
- '.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@v4 | |
- name: Build Image | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
python3 -m pip install --upgrade pip && python3 -m pip install click | |
python3 ./gsctl.py flexbuild interactive --app docker | |
- name: Build gsctl Wheel Package | |
run: | | |
cd ${GITHUB_WORKSPACE}/python | |
python3 setup_flex.py bdist_wheel | |
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 graphscope/interactive:latest --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 |