Skip to content

Commit ae4905b

Browse files
committed
fix: add groups for python installation sections
1 parent 8b1e805 commit ae4905b

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/python/python.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { dirname, join, parse as pathParse } from "path"
44
import { getExecOutput } from "@actions/exec"
55
import ciInfo from "ci-info"
66
const { GITHUB_ACTIONS } = ciInfo
7+
import { endGroup, startGroup } from "@actions/core"
78
import { info, notice, warning } from "ci-log"
89
import { addPath } from "envosman"
910
import { execa } from "execa"
@@ -37,21 +38,34 @@ export async function setupPython(
3738
setupDir: string,
3839
arch: string,
3940
): Promise<InstallationInfo & { bin: string }> {
41+
startGroup("Setup Python")
4042
const installInfo = await findOrSetupPython(version, setupDir, arch)
4143
assert(installInfo.bin !== undefined)
4244
const foundPython = installInfo.bin
45+
endGroup()
4346

4447
// setup venv
48+
startGroup("Setup venv")
4549
await setupVenv(foundPython)
50+
endGroup()
4651

4752
// setup pip
53+
startGroup("Setup pip")
4854
const foundPip = await findOrSetupPip(foundPython)
55+
endGroup()
4956
if (foundPip === undefined) {
5057
throw new Error("pip was not installed correctly")
5158
}
5259

60+
// setup pipx
61+
startGroup("Setup pipx")
5362
await setupPipx(foundPython)
63+
endGroup()
64+
65+
// setup wheel
66+
startGroup("Setup wheel")
5467
await setupWheel(foundPython)
68+
endGroup()
5569

5670
return installInfo as InstallationInfo & { bin: string }
5771
}

0 commit comments

Comments
 (0)