Skip to content

Commit

Permalink
fix(setup): use pipx to install Bikeshed (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyasskin authored Oct 16, 2024
1 parent 796e410 commit ebf41d9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from "path";
import { addPath, exportVariable } from "@actions/core";
import { env, exit, install, sh } from "./utils.js";
import * as path from "path";
import { ACTION_DIR, PUPPETEER_ENV } from "./constants.js";
import { env, exit, install, sh } from "./utils.js";

const PYTHONUSERBASE = path.join(ACTION_DIR, "python_modules");

Expand All @@ -21,17 +21,16 @@ export default async function main(toolchain: "respec" | "bikeshed" | string) {
break;
}
case "bikeshed": {
await sh("pip3 --version", "buffer");
await sh(`pip3 install bikeshed --quiet`, {
await sh("pipx --version", "buffer");
await sh(`pipx install bikeshed --quiet`, {
output: "stream",
cwd: ACTION_DIR,
env: {
PYTHONUSERBASE,
},
});
exportVariable("PYTHONUSERBASE", PYTHONUSERBASE);
await sh("bikeshed update", "stream");
await sh("pip3 show bikeshed | grep -i version", "buffer");
await sh("pipx list --short | grep -i bikeshed", "buffer");
break;
}
default: {
Expand Down

0 comments on commit ebf41d9

Please sign in to comment.