diff --git a/.github/workflows/ci-arm.yml b/.github/workflows/ci-arm.yml index c451f0f..8f46757 100644 --- a/.github/workflows/ci-arm.yml +++ b/.github/workflows/ci-arm.yml @@ -2,7 +2,7 @@ name: ARM64 Tests on: push: - branches: master + branches: [master] pull_request: jobs: @@ -10,13 +10,12 @@ jobs: runs-on: [self-hosted, linux, ARM64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: | - 3.1.x 6.0.x - name: Create virtualenv diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae40be9..b83433d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,22 +2,22 @@ name: Python Tests on: push: - branches: master + branches: [master] pull_request: jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-dotnet@v1 - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v6 - name: Build run: uv build - name: Upload source distribution - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-output path: "dist/*" @@ -26,10 +26,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depths: 0 - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v6 - name: Install Ruff run: uv tool install ruff - name: Check format @@ -46,7 +46,7 @@ jobs: python: ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8'] # pypy3 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v1 @@ -54,13 +54,13 @@ jobs: dotnet-version: '6.0.x' - name: Set up Python ${{ matrix.python }} - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python }} - name: Cache Mono if: runner.os == 'Windows' - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ env.TEMP }}\chocolatey key: ${{ runner.os }}-chocolatey-${{ matrix.python == 'pypy3' && '32' || '64' }} @@ -76,7 +76,7 @@ jobs: uv pip install pytest - name: Download wheel - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-output path: dist/ @@ -96,7 +96,7 @@ jobs: steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-output path: dist/ diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bce19d4..1fe8fee 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,7 @@ jobs: - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: doc/_build/html/ diff --git a/clr_loader/types.py b/clr_loader/types.py index 15c1e30..6b54030 100644 --- a/clr_loader/types.py +++ b/clr_loader/types.py @@ -141,6 +141,6 @@ def _truncate(string: str, length: int) -> str: if length <= 1: raise TypeError("length must be > 1") if len(string) > length - 1: - return f"{string[:length-1]}…" + return f"{string[: length - 1]}…" else: return string