File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ concurrency:
34
34
35
35
jobs :
36
36
lint :
37
- name : Linters (mypy, flake8 , etc.)
37
+ name : Linters (mypy, ruff , etc.)
38
38
runs-on : ubuntu-latest
39
39
steps :
40
40
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 89
89
${{ inputs.only != '' && format('--only "{0}"', inputs.only) || ''}}
90
90
shell: pwsh
91
91
if: runner.os == 'Windows'
92
+
93
+ - run : |
94
+ # Prepare summary
95
+ "${{ steps.python.outputs.python-path }}" -u << "EOF"
96
+ import os
97
+ from pathlib import Path
98
+
99
+ output_dir = Path("${{ inputs.output-dir }}" or "wheelhouse")
100
+
101
+ with Path(os.environ["GITHUB_STEP_SUMMARY"]).open("w", encoding="utf-8") as f:
102
+ print("## 🎡: files in output directory", file=f)
103
+ print(file=f)
104
+ for item in sorted(output_dir.iterdir()):
105
+ if item.is_file():
106
+ size_mb = item.stat().st_size / 1024**2
107
+ print(f"* `{item}` - {size_mb:.2f} MB", file=f)
108
+ else:
109
+ print(f"* `{item.name}/`", file=f)
110
+ print(file=f)
111
+ EOF
112
+ shell: bash
You can’t perform that action at this time.
0 commit comments