Skip to content

Update CI actions #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: ARM64 Tests

on:
push:
branches: master
branches: [master]
pull_request:

jobs:
build:
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
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand All @@ -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
Expand All @@ -46,21 +46,21 @@ 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
with:
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' }}
Expand All @@ -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/
Expand All @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
2 changes: 1 addition & 1 deletion clr_loader/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading