-
Notifications
You must be signed in to change notification settings - Fork 1
Update python-package.yml #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -38,3 +38,31 @@ jobs: | |||||
| - name: Test with pytest | ||||||
| run: | | ||||||
| pytest | ||||||
| - name: Setup Node.js environment | ||||||
| uses: actions/setup-node@v6.1.0 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (bug_risk): The
Suggested change
|
||||||
| with: | ||||||
| # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0. | ||||||
| node-version: # optional | ||||||
| # File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions. | ||||||
| node-version-file: # optional | ||||||
| # Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. | ||||||
| architecture: # optional | ||||||
| # Set this option if you want the action to check for the latest available version that satisfies the version spec. | ||||||
| check-latest: # optional | ||||||
| # Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN. | ||||||
| registry-url: # optional | ||||||
| # Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). | ||||||
|
Comment on lines
+45
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Several In this case |
||||||
| scope: # optional | ||||||
| # Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. | ||||||
| token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} | ||||||
| # Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm. | ||||||
| cache: # optional | ||||||
| # Set to false to disable automatic caching. By default, caching is enabled when either devEngines.packageManager or the top-level packageManager field in package.json specifies npm as the package manager. | ||||||
| package-manager-cache: # optional, default is true | ||||||
| # Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies. | ||||||
| cache-dependency-path: # optional | ||||||
| # Used to specify an alternative mirror to downlooad Node.js binaries from | ||||||
| mirror: # optional | ||||||
| # The token used as Authorization header when fetching from the mirror | ||||||
| mirror-token: # optional | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): The new Node setup step is mis-indented and split, which will make the workflow YAML invalid.
In GitHub Actions, each step must be a single, consistently indented map under
steps:. Here- nameis over-indented whileuses:/with:are at the root level, souses:is not actually part of the step and the workflow will fail to load. Please align this as a normal step, matching the indentation of the existing steps.