Skip to content

Commit b1c7241

Browse files
committed
update
1 parent a31e559 commit b1c7241

File tree

2 files changed

+37
-19
lines changed

2 files changed

+37
-19
lines changed

.github/workflows/test_gpu.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,8 @@ name: PaddleOCR PR Tests GPU
33
on:
44
push:
55
branches: ["main"]
6-
paths-ignore:
7-
- '**.md'
8-
- '**.txt'
9-
- '**.yml'
10-
- '**.yaml'
116
pull_request:
127
branches: ["main"]
13-
paths-ignore:
14-
- '**.md'
15-
- '**.txt'
16-
- '**.yml'
17-
- '**.yaml'
188
workflow_dispatch:
199
env:
2010
PR_ID: ${{ github.event.pull_request.number }}
@@ -29,8 +19,26 @@ permissions:
2919
contents: read
3020

3121
jobs:
22+
detect-changes:
23+
runs-on: ubuntu-latest
24+
outputs:
25+
docs_only: ${{ steps.filter.outputs.docs_only }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- id: filter
29+
uses: dorny/paths-filter@v3
30+
with:
31+
filters: |
32+
docs_only:
33+
- '**.md'
34+
- '**.txt'
35+
- '**.yml'
36+
- '**.yaml'
37+
3238
test-pr-gpu:
3339
runs-on: [self-hosted, GPU-2Card-OCR]
40+
needs: detect-changes
41+
if: needs.detect-changes.outputs.docs_only != 'true'
3442
steps:
3543
- name: run test
3644
env:

.github/workflows/tests.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,35 @@ name: PaddleOCR PR Tests
33
on:
44
push:
55
branches: ["main", "release/*"]
6-
paths-ignore:
7-
- '**.md'
8-
- '**.txt'
9-
- '**.yml'
10-
- '**.yaml'
116
pull_request:
127
branches: ["main", "release/*"]
138
paths-ignore:
14-
- '**.md'
15-
- '**.txt'
16-
- '**.yml'
17-
- '**.yaml'
9+
1810

1911
permissions:
2012
contents: read
2113

2214
jobs:
15+
detect-changes:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
docs_only: ${{ steps.filter.outputs.docs_only }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- id: filter
22+
uses: dorny/paths-filter@v3
23+
with:
24+
filters: |
25+
docs_only:
26+
- '**.md'
27+
- '**.txt'
28+
- '**.yml'
29+
- '**.yaml'
30+
2331
test-pr:
2432
runs-on: ubuntu-latest
33+
needs: detect-changes
34+
if: needs.detect-changes.outputs.docs_only != 'true'
2535

2636
steps:
2737
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)