Skip to content

Commit

Permalink
skip test job if only markdown files (alibaba#691)
Browse files Browse the repository at this point in the history
skip test job if only markdown files
  • Loading branch information
Yancey1989 committed Oct 21, 2022
1 parent 4d14d44 commit 2c5993e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 110 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/pytorch110_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
*
**/*
.github/**/*
!*.md
!**/*.md
- name: Build Dev Docker
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
git submodule sync
Expand All @@ -27,6 +36,7 @@ jobs:
--build-arg DISC_HOST_TF_VERSION="tensorflow-aarch64==2.8" \
-f docker/dev/Dockerfile.aarch64 .
- name: Build And Test DISC
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
docker run --rm -t --user $(id -u):$(id -g) \
Expand All @@ -41,7 +51,7 @@ jobs:
disc-dev-cpu-aarch64 \
bash ./scripts/ci/test_pytorch_blade.sh
- name: Deploy Dev Docker Image
if: github.event.ref == 'refs/heads/main'
if: github.event.ref == 'refs/heads/main'
env:
ALIYUN_DOCKER_USERNAME: ${{ secrets.ALIYUN_DOCKER_USERNAME }}
ALIYUN_DOCKER_PASSWORD: ${{ secrets.ALIYUN_DOCKER_PASSWORD }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/resuable_cpu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ jobs:
# Runs a single command using the runners shell
- name: Checkout
uses: actions/checkout@v2.4.0
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
*
**/*
.github/**/*
!*.md
!**/*.md
- name: Build Dev Docker
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
git submodule sync
Expand All @@ -62,6 +71,7 @@ jobs:
${{ inputs.extra_build_args }} \
-f docker/dev/Dockerfile .
- name: Build And Test
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
docker run --rm -t --user $(id -u):$(id -g) \
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/resuable_gpu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,21 @@ jobs:
# Runs a single command using the runners shell
- name: Checkout
uses: actions/checkout@v2.4.0
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
*
**/*
.github/**/*
!*.md
!**/*.md
- name: pre-commit
shell: bash
run: |
export PATH=$HOME/.local/bin:$PATH
pre-commit run -a --show-diff-on-failure
- name: Build Dev Docker
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
git submodule sync
Expand All @@ -71,6 +80,7 @@ jobs:
-f docker/dev/Dockerfile .
- name: Build And Test
if: env.GIT_DIFF || github.event_name != 'pull_request'
run: |
set -e
nvidia-docker run --rm -t --user $(id -u):$(id -g) \
Expand All @@ -84,7 +94,7 @@ jobs:
disc-dev-${{ inputs.cuda_version }} ${{ inputs.exec_command }}
- name: Build And Test TF Blade
if: ${{ inputs.tf_blade_command }}
if: ${{ inputs.tf_blade_command && (env.GIT_DIFF || github.event_name != 'pull_request') }}
run: |
set -e
nvidia-docker run --rm -t --user $(id -u):$(id -g) \
Expand Down
107 changes: 0 additions & 107 deletions .github/workflows/reusable.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/developers/add_custom_call.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ should add the kernel implementation to the directory
### Step2: Translate LMHLO Operator to Custom Call Operator
In the BladeDISC pass pipeline, it converts a lmhlo operator to a custom call
In the BladeDISC pass pipeline, a lmhlo operator is converted to a custom call
op via `DispatchOp` in `DiscLowerToLibraryCallPass`. A simple code snippet is as
the following:
Expand Down

0 comments on commit 2c5993e

Please sign in to comment.