8000 CI, MAINT: use `fetch-tags: true` to speed up NumPy checkouts by agriyakhetarpal · Pull Request #25900 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

CI, MAINT: use fetch-tags: true to speed up NumPy checkouts #25900

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

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

agriyakhetarpal
Copy link
Contributor

Description

This pull request performs the following changes:

  1. It uses the fetch-tags: true input for the GitHub Actions checkout step for all of the workflows, which is faster and should save us some time (see the Usage section of the documentation for actions/checkout@v4.1.1)
  2. It de-quotes (but keeps) the condition:
if: github.repository == 'numpy/numpy'

for disabling jobs on forks, wherever applicable – it removes some warnings related to the JSON schema for GitHub Actions that were being raised in my text editor; i.e., Visual Studio Code.
3. In some locations, some missing comments have been added that prompt users to comment out the condition in point 2 to run it on their forks. This has not been done for smaller jobs, and mostly for jobs with longer durations.

This was requested in the code review stage in gh-25894

This commit performs the following changes:

1. It uses the fetch-tags: true input for the GitHub Actions checkout step for all of the workflows
2. It de-quotes the condition for disabling jobs on forks, wherever applicable – it removes some JSON schema warnings emitted in Visual Studio Code.
3. In some locations, comments have been added that prompt users to comment out the condition in point 2 to run it on their forks.

[skip circle] [skip cirrus] [skip azp]
@agriyakhetarpal agriyakhetarpal force-pushed the use-fetch-tags-in-gha-jobs branch from b519d70 to 9858434 Compare February 28, 2024 15:43
@charris charris merged commit e422abb into numpy:main Feb 28, 2024
@charris
Copy link
Member
charris commented Feb 28, 2024

Thanks @agriyakhetarpal .

I suspect the lint problem might be the branch name, but have now idea what it should be.

@agriyakhetarpal agriyakhetarpal deleted the use-fetch-tags-in-gha-jobs branch February 28, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0