MCPcopy Index your code
hub / github.com/actions/setup-python / validateVersion

Function validateVersion

src/utils.ts:67–69  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

65}
66
67export function validateVersion(version: string) {
68 return isNightlyKeyword(version) || Boolean(semver.validRange(version));
69}
70
71export function isNightlyKeyword(pypyVersion: string) {
72 return pypyVersion === 'nightly';

Callers 3

parseGraalPyVersionFunction · 0.90
parsePyPyVersionFunction · 0.90
utils.test.tsFile · 0.90

Calls 1

isNightlyKeywordFunction · 0.85

Tested by

no test coverage detected