File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Set the default behavior, in case people don't have core.autocrlf set.
2+ * text =auto
3+
4+ # Denote all files that are truly binary and should not be modified.
15* .jpg binary
26* .png binary
3- * .traineddata binary
4- * .whl binary
7+
8+ # Explicitly declare text files you want to always be normalized and converted to native line endings on checkout.
9+ * .md text eol =lf
10+ * .sh text eol =lf
11+ * .yaml text eol =lf
12+ * .yml text eol =lf
Original file line number Diff line number Diff line change 1414 uses : astral-sh/setup-uv@v6
1515 with :
1616 activate-environment : true
17+ enable-cache : true
18+ ignore-nothing-to-cache : true
1719
1820 - name : Install dependencies
1921 shell : powershell
Original file line number Diff line number Diff line change @@ -10,15 +10,12 @@ jobs:
1010 tests :
1111 runs-on : windows-latest
1212 steps :
13- - name : Checkout repository
14- uses : actions/checkout@v4
13+ - uses : actions/checkout@v4
1514
1615 - name : Setup env
1716 uses : ./.github/actions/setup_env
1817
19- - name : pre-commit
20- shell : powershell
21- run : pre-commit run -a
18+ - uses : pre-commit/action@v3.0.1
2219
2320 - name : Pytest
2421 shell : powershell
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 # From: https://github.com/SethCohen/github-releases-to-discord
12- - name : Checkout
13- uses : actions/checkout@v3
14- - name : Github Releases To Discord
15- uses : SethCohen/github-releases-to-discord@v1.16.2
12+ - uses : actions/checkout@v4
13+
14+ - uses : SethCohen/github-releases-to-discord@v1.16.2
1615 with :
1716 webhook_url : ${{ secrets.DISCORD_WEBHOOK }}
1817 color : " 2105893"
Original file line number Diff line number Diff line change 1818 )
1919 runs-on : windows-latest
2020 steps :
21- - name : Checkout repository
22- uses : actions/checkout@v4
23- with :
24- lfs : false # change to true when building benchmarks
21+ - uses : actions/checkout@v4
2522
2623 - name : Setup env
2724 uses : ./.github/actions/setup_env
@@ -52,26 +49,11 @@ jobs:
5249 echo "IS_BETA=false" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
5350 }
5451
55- - name : Release
56- id : release
57- uses : softprops/action-gh-release@v2
52+ - uses : softprops/action-gh-release@v2
5853 with :
5954 files : d4lf_v*.zip
6055 generate_release_notes : true
6156 name : " v${{ env.VERSION }}"
6257 prerelease : ${{ env.IS_BETA == 'true' }}
6358 tag_name : " v${{ env.VERSION }}"
6459 token : " ${{ secrets.RELEASE_TOKEN }}"
65-
66- # - name: Send message to Discord
67- # shell: powershell
68- # run: |
69- # $webhookUrl = "${{ secrets.DISCORD_WEBHOOK }}"
70- # $payload = @{
71- # username = "GitHub"
72- # content = "**D4LF v${{ env.VERSION }}**`n`nRelease Page: <${{ steps.release.outputs.url }}>"
73- # allowed_mentions = @{
74- # parse = @()
75- # }
76- # } | ConvertTo-Json
77- # Invoke-RestMethod -Uri $webhookUrl -Method Post -ContentType "application/json" -Body $payload
You can’t perform that action at this time.
0 commit comments