Distributed support for v6d GraphScope #221
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: GLT CI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'benchmarks/**' | |
- 'docs/**' | |
- 'examples/**' | |
- '**.md' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'benchmarks/**' | |
- 'docs/**' | |
- 'examples/**' | |
- '**.md' | |
env: | |
IMAGE: graphlearn/graphlearn_for_pytorch:1.0.0-ubuntu20.04-py3.8-torch1.13-cuda11.6 | |
JOBNAME: glt-ci-${{ github.run_id }} | |
DESTDIR: /mnt/graphlearn_for_pytorch | |
jobs: | |
run-glt-unittests: | |
runs-on: self-hosted | |
if: ${{ github.repository == 'alibaba/graphlearn-for-pytorch' }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Update submodules | |
working-directory: ${{github.workspace}} | |
run: | | |
git submodule update --init | |
- name: Launch CI container | |
working-directory: ${{github.workspace}} | |
run: | | |
bash scripts/launch_container.sh ${IMAGE} ${JOBNAME} ${DESTDIR} | |
- name: Build wheel | |
run: | | |
docker exec ${JOBNAME} bash ${DESTDIR}/scripts/build_wheel.sh | |
- name: Run cpp unit tests | |
run: | | |
docker exec ${JOBNAME} bash ${DESTDIR}/scripts/run_cpp_ut.sh | |
- name: Run python unit tests | |
run: | | |
docker exec ${JOBNAME} bash ${DESTDIR}/scripts/run_python_ut.sh | |
- name: Remove CI container | |
if: always() | |
working-directory: ${{github.workspace}} | |
run: | | |
bash scripts/remove_container.sh ${JOBNAME} |