Skip to content

Commit 991ce56

Browse files
committed
fix: fix the matchers path for python
1 parent bd2585f commit 991ce56

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.github/python.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "python",
5+
"pattern": [
6+
{
7+
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$",
8+
"file": 1,
9+
"line": 2
10+
},
11+
{
12+
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$",
13+
"message": 2
14+
}
15+
]
16+
}
17+
]
18+
}

dist/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/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.

src/python/actions_python.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as core from "@actions/core"
22
import * as finder from "./setup-python/src/find-python"
33
import * as finderPyPy from "./setup-python/src/find-pypy"
4-
import * as path from "path"
4+
// import * as path from "path"
55

66
function isPyPyVersion(versionSpec: string) {
77
return versionSpec.startsWith("pypy-")
@@ -17,7 +17,7 @@ export async function setupActionsPython(version: string, _setupDir: string, arc
1717
const installed = await finder.findPythonVersion(version, arch)
1818
core.info(`Successfully setup ${installed.impl} (${installed.version})`)
1919
}
20-
const matchersPath = path.join("setup-pthon", ".github")
21-
core.info(`##[add-matcher]${path.join(matchersPath, "python.json")}`)
20+
// fails
21+
// core.info(`##[add-matcher]${path.join("./.github", "python.json")}`)
2222
return undefined
2323
}

0 commit comments

Comments
 (0)