File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,28 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15+ Check-Changes :
16+ runs-on : ubuntu-latest
17+ outputs :
18+ run_tests : ${{ steps.check_changes.outputs.run_tests }}
19+ steps :
20+ - uses : actions/checkout@v3
21+ with :
22+ fetch-depth : 0
23+ - name : Check Changes
24+ id : check_changes
25+ run : |
26+ git fetch origin ${{ github.base_ref }}
27+ changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
28+ if echo "$changed_files" | grep -qE "^(data_processor|ernie|erniekit|examples|requirements|tests)/"; then
29+ echo "run_tests=true" >> $GITHUB_OUTPUT
30+ else
31+ echo "run_tests=false" >> $GITHUB_OUTPUT
32+ fi
33+
1534 Test :
35+ needs : Check-Changes
36+ if : needs.Check-Changes.outputs.run_tests == 'true'
1637 name : Test
1738 runs-on : [self-hosted, ernie-8gpu]
1839 steps :
Original file line number Diff line number Diff line change 1111 BRANCH : ${{ github.event.pull_request.base.ref }}
1212 TASK : ERNIE-Codestyle-${{ github.event.pull_request.number }}
1313jobs :
14+ Check-Changes :
15+ runs-on : ubuntu-latest
16+ outputs :
17+ run_lint : ${{ steps.check_changes.outputs.run_lint }}
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ fetch-depth : 0
22+ - name : Check Changes
23+ id : check_changes
24+ run : |
25+ git fetch origin ${{ github.base_ref }}
26+ changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
27+ if echo "$changed_files" | grep -qE "^(cookbook|data_processor|ernie|erniekit|examples|requirements|tests|tools)/"; then
28+ echo "run_lint=true" >> $GITHUB_OUTPUT
29+ else
30+ echo "run_lint=false" >> $GITHUB_OUTPUT
31+ fi
32+
1433 Lint :
34+ needs : Check-Changes
35+ if : needs.Check-Changes.outputs.run_lint == 'true'
1536 name : Lint
1637 runs-on : [self-hosted, ernie-cpu-01]
1738 permissions :
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ demo_data/index-cache
99log
1010docs /site /
1111uv.lock
12+ .DS_Store
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Welcome to the ERNIE documentation.
1212- [ Chat Arguments] ( chat_args.md )
1313- [ Export Arguments] ( export_args.md )
1414- [ FP8 Quantization-Aware Training (QAT)] ( fp8_qat.md )
15- - [ WINT8 Mixed Precision LoRA] ( wint8mix_lora.md )
15+ - [ WINT8 Mixed Precision LoRA] ( wint8mix_lora.md )
You can’t perform that action at this time.
0 commit comments