File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- name : Unit Tests
1+ name : CI
22
33on :
44 # This runs in the context of the base of the pull request,
@@ -11,7 +11,8 @@ permissions:
1111 contents : read
1212
1313jobs :
14- build-and-test :
14+ test :
15+ name : Test
1516 uses : huggingface/hf-workflows/.github/workflows/swift_transformers_unit_tests.yml@main
1617 with :
1718 # Use the PR merge ref, not the head.
2627 - uses : actions/checkout@v4
2728
2829 - run : |
29- swift format lint --recursive .
30+ swift format lint --strict -- recursive .
3031
3132 - name : Suggest fixes (if check fails)
3233 if : failure()
Original file line number Diff line number Diff line change @@ -140,7 +140,10 @@ struct TokenizerTests {
140140 let tokenizer = tokenizerOpt!
141141
142142 // These are two different characters
143- let cases = [ " à " /* 0x61 0x300 */, " à " /* 0xe0 */]
143+ let cases = [
144+ " à " , // 0x61 0x300
145+ " à " , // 0xe0
146+ ]
144147 let expected = [ 217138 , 1305 ]
145148 for (s, expected) in zip ( cases, expected) {
146149 let encoded = tokenizer. encode ( text: " " + s)
You can’t perform that action at this time.
0 commit comments