Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Dec 22, 2024
1 parent e86dbf3 commit e20d717
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- run: npm ci
- run: npm run build --if-present
- run: npm test
4 changes: 4 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- run: npm ci
- run: npm test

Expand Down
2 changes: 1 addition & 1 deletion test/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import which from "which";

test("matches python platformdirs", async (t) => {
// https://docs.astral.sh/uv/getting-started/installation/
if (!(await which("uv"))) {
if (!(await which("uv", { nothrow: true }))) {
t.skip("uv not found");
return;
}
Expand Down

0 comments on commit e20d717

Please sign in to comment.