File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Test gpt_bpe_test.go
2
2
3
3
on :
4
4
push :
5
+ paths-ignore :
6
+ - " README.md"
7
+ - " LICENSE"
5
8
workflow_dispatch :
6
9
7
10
jobs :
19
22
- name : Build
20
23
run : go build -v ./
21
24
22
- - name : Test
25
+ - name : Check for changes to code
26
+ id : check_changes_repo
27
+ run : |
28
+ changed_files=$(git diff --name-only ${{ github.event.before }})
29
+ if echo "$changed_files" | grep -q '^cmd/dataset_tokenizer/'; then
30
+ echo "Dataset Tokenizer files have changed"
31
+ echo "run_dataset_tests=true" >> $GITHUB_ENV
32
+ fi
33
+
34
+ # Other changes
35
+ if echo "$changed_files" | grep -qv '^cmd/'; then
36
+ echo "Other files have changed"
37
+ echo "run_other_tests=true" >> $GITHUB_ENV
38
+ fi
39
+
40
+ - name : Test gpt_bpe
41
+ if : env.run_other_tests == 'true'
42
+ uses : robherley/go-test-action@v0
43
+ with :
44
+ testArguments : ./
45
+
46
+ - name : Test dataset_tokenizer
47
+ if : env.run_dataset_tests == 'true'
23
48
uses : robherley/go-test-action@v0
24
49
with :
25
50
testArguments : ./
51
+ moduleDirectory : ./cmd/dataset_tokenizer
You can’t perform that action at this time.
0 commit comments