Bump version to 0.2.4 (#148) #24
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-torch-dev | |
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: Build image | |
working-directory: ${{github.workspace}} | |
run: | | |
docker build -f dockerfiles/${IMAGE}.Dockerfile -t ${IMAGE} . | |
- 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} |