-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
GHA
concurrency
#6210
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
GHA
concurrency
#6210
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4d1fa2c
concurrency ci
aaronspring 0c93f0a
Update ci-additional.yaml
aaronspring 65056d5
Update upstream-dev-ci.yaml
aaronspring ecc0346
Delete cancel-duplicate-runs.yaml
aaronspring 0ad4278
Update ci.yaml
aaronspring d1f79bd
Update ci-additional.yaml
aaronspring b554b86
Update ci.yaml
aaronspring 06a168f
Update .github/workflows/ci-additional.yaml
aaronspring 99128f6
Update .github/workflows/ci.yaml
aaronspring cff230a
Update .github/workflows/upstream-dev-ci.yaml
aaronspring File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,14 @@ on: | |
- "*" | ||
workflow_dispatch: # allows you to trigger manually | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
skip-duplicate-jobs: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.repository == 'pydata/xarray' | ||
&& (github.event_name == 'push' || github.event_name == 'pull_request') | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
# For workflows which are triggered concurrently with the same | ||
# contents, attempt to execute them exactly once. | ||
concurrent_skipping: 'same_content_newer' | ||
paths_ignore: '["**/doc/**"]' | ||
detect-ci-trigger: | ||
name: detect ci trigger | ||
runs-on: ubuntu-latest | ||
needs: skip-duplicate-jobs | ||
if: ${{ needs.skip-duplicate-jobs.outputs.should_skip != 'true' }} | ||
outputs: | ||
triggered: ${{ steps.detect-trigger.outputs.trigger-found }} | ||
steps: | ||
|
@@ -129,8 +116,6 @@ jobs: | |
doctest: | ||
name: Doctests | ||
runs-on: "ubuntu-latest" | ||
needs: skip-duplicate-jobs | ||
if: ${{ needs.skip-duplicate-jobs.outputs.should_skip != 'true' }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,13 @@ on: | |
- "*" | ||
workflow_dispatch: # allows you to trigger manually | ||
|
||
jobs: | ||
skip-duplicate-jobs: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.repository == 'pydata/xarray' | ||
&& (github.event_name == 'push' || github.event_name == 'pull_request') | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
# For workflows which are triggered concurrently with the same | ||
# contents, attempt to execute them exactly once. | ||
concurrent_skipping: 'same_content_newer' | ||
paths_ignore: '["**/doc/**"]' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
detect-ci-trigger: | ||
name: detect ci trigger | ||
needs: skip-duplicate-jobs | ||
if: ${{ needs.skip-duplicate-jobs.outputs.should_skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
triggered: ${{ steps.detect-trigger.outputs.trigger-found }} | ||
|
@@ -125,8 +111,6 @@ jobs: | |
|
||
event_file: | ||
name: "Event File" | ||
needs: skip-duplicate-jobs | ||
if: ${{ needs.skip-duplicate-jobs.outputs.should_skip != 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@aaronspring, we may want to keep this condition so as to avoid running the CI on forks
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.
Shouldn’t we keep this? @max-sixty @andersy005
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.
we should! @aaronspring, can you open a new PR for that?
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.
Sorry, I merged too early. @aaronspring if you can open a PR then great, otherwise I can as penance
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.
I put the condition in
detect-ci-trigger
in #6223