Skip to content

[Embedding] Refine header file of embedding variable. (#978) #1731

[Embedding] Refine header file of embedding variable. (#978)

[Embedding] Refine header file of embedding variable. (#978) #1731

name: CPU Java Unit Tests
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
- '*.md'
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
- 'docs/**'
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
- '*.md'
env:
IMAGE: alideeprec/deeprec-cicd:deeprec-dev-cpu-cibuild-py38-ubuntu20.04
JOBNAME: deeprec-ci-cpu-${{ github.run_id }}
jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Pull Image And Start Container
if: ${{ success() }}
run:
cibuild/pull_image_and_start_container.sh cpu ${IMAGE} ${JOBNAME}
- name: Upload Source
if: ${{ success() }}
run:
cibuild/upload.sh ${JOBNAME} ../cibuild /mnt
- name: Unit Test
if: ${{ success() }}
run: |-
docker exec ${JOBNAME} /mnt/cibuild/cpu-ut/cpu-java-ut.sh /mnt
- name: Remove Container
if: ${{ always() }}
run:
cibuild/remove_container.sh ${JOBNAME}