Skip to content

Commit 80e2385

Browse files
authored
Update CI actions (#79)
* Update CI actions * Fix format
1 parent cbe765c commit 80e2385

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.github/workflows/ci-arm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@ name: ARM64 Tests
22

33
on:
44
push:
5-
branches: master
5+
branches: [master]
66
pull_request:
77

88
jobs:
99
build:
1010
runs-on: [self-hosted, linux, ARM64]
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v1
1717
with:
1818
dotnet-version: |
19-
3.1.x
2019
6.0.x
2120
2221
- name: Create virtualenv

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ name: Python Tests
22

33
on:
44
push:
5-
branches: master
5+
branches: [master]
66
pull_request:
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- uses: actions/setup-dotnet@v1
16-
- uses: astral-sh/setup-uv@v4
16+
- uses: astral-sh/setup-uv@v6
1717
- name: Build
1818
run: uv build
1919
- name: Upload source distribution
20-
uses: actions/upload-artifact@v3
20+
uses: actions/upload-artifact@v4
2121
with:
2222
name: build-output
2323
path: "dist/*"
@@ -26,10 +26,10 @@ jobs:
2626
lint:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depths: 0
32-
- uses: astral-sh/setup-uv@v4
32+
- uses: astral-sh/setup-uv@v6
3333
- name: Install Ruff
3434
run: uv tool install ruff
3535
- name: Check format
@@ -46,21 +46,21 @@ jobs:
4646
python: ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8'] # pypy3
4747

4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050

5151
- name: Setup .NET
5252
uses: actions/setup-dotnet@v1
5353
with:
5454
dotnet-version: '6.0.x'
5555

5656
- name: Set up Python ${{ matrix.python }}
57-
uses: astral-sh/setup-uv@v4
57+
uses: astral-sh/setup-uv@v6
5858
with:
5959
python-version: ${{ matrix.python }}
6060

6161
- name: Cache Mono
6262
if: runner.os == 'Windows'
63-
uses: actions/cache@v2
63+
uses: actions/cache@v4
6464
with:
6565
path: ${{ env.TEMP }}\chocolatey
6666
key: ${{ runner.os }}-chocolatey-${{ matrix.python == 'pypy3' && '32' || '64' }}
@@ -76,7 +76,7 @@ jobs:
7676
uv pip install pytest
7777
7878
- name: Download wheel
79-
uses: actions/download-artifact@v3
79+
uses: actions/download-artifact@v4
8080
with:
8181
name: build-output
8282
path: dist/
@@ -96,7 +96,7 @@ jobs:
9696

9797
steps:
9898
- name: Download artifacts
99-
uses: actions/download-artifact@v3
99+
uses: actions/download-artifact@v4
100100
with:
101101
name: build-output
102102
path: dist/

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
1515
- name: Upload artifact
1616
# Automatically uploads an artifact from the './_site' directory by default
17-
uses: actions/upload-pages-artifact@v1
17+
uses: actions/upload-pages-artifact@v3
1818
with:
1919
path: doc/_build/html/
2020

clr_loader/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,6 @@ def _truncate(string: str, length: int) -> str:
141141
if length <= 1:
142142
raise TypeError("length must be > 1")
143143
if len(string) > length - 1:
144-
return f"{string[:length-1]}…"
144+
return f"{string[: length - 1]}…"
145145
else:
146146
return string

0 commit comments

Comments
 (0)