-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Revert "Remove skipping logic in favor of path filtering (#14170)" #14244
Merged
Merged
Changes from all commits
Commits
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 contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file contains filters to be used in the CI to detect file changes and run the required CI jobs. | ||
|
||
app_examples: | ||
- "src/lightning_app/**" | ||
- "tests/tests_app_examples/**" | ||
- "requirements/app/**" | ||
- "examples/app_*" | ||
- "setup.py" | ||
- "src/pytorch_lightning/__version__.py" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -6,12 +6,6 @@ on: # Trigger the workflow on push or pull request, but only for the master bra | |
branches: [master, "release/*"] | ||
pull_request: | ||
branches: [master, "release/*"] | ||
paths: | ||
- "requirements/pytorch/**" | ||
- "src/pytorch_lightning/**" | ||
- "tests/tests_pytorch/**" | ||
- "setup.cfg" # includes pytest config | ||
- ".github/workflows/ci-pytorch-test-conda.yml" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} | ||
|
@@ -41,7 +35,28 @@ jobs: | |
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Decide if the test should be skipped | ||
id: skip | ||
shell: bash -l {0} | ||
run: | | ||
FILTER='src/pytorch_lightning|requirements/pytorch|tests/tests_pytorch|examples/pl_*' | ||
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr " " "\n" > changed_files.txt | ||
MATCHES=$(cat changed_files.txt | grep -E $FILTER) | ||
echo $MATCHES | ||
if [ -z "$MATCHES" ]; then | ||
echo "Skip" | ||
echo "::set-output name=continue::0" | ||
else | ||
echo "Continue" | ||
echo "::set-output name=continue::1" | ||
fi | ||
|
||
- name: Update base dependencies | ||
if: ${{ (steps.skip.outputs.continue == '1') }} | ||
env: | ||
PACKAGE_NAME: pytorch | ||
FREEZE_REQUIREMENTS: 1 | ||
|
@@ -55,10 +70,12 @@ jobs: | |
run: pip install "Pillow<9.0" # It messes with torchvision | ||
|
||
- name: DocTests | ||
if: ${{ (steps.skip.outputs.continue == '1') }} | ||
working-directory: ./src | ||
run: pytest pytorch_lightning --cov=pytorch_lightning | ||
|
||
- name: Update all dependencies | ||
if: ${{ (steps.skip.outputs.continue == '1') }} | ||
env: | ||
HOROVOD_BUILD_ARCH_FLAGS: "-mfma" | ||
HOROVOD_WITHOUT_MXNET: 1 | ||
|
@@ -78,9 +95,11 @@ jobs: | |
python requirements/pytorch/check-avail-extras.py | ||
|
||
- name: Pull legacy checkpoints | ||
if: ${{ (steps.skip.outputs.continue == '1') }} | ||
run: bash .actions/pull_legacy_checkpoints.sh | ||
|
||
- name: Testing PyTorch | ||
if: ${{ (steps.skip.outputs.continue == '1') }} | ||
working-directory: tests/tests_pytorch | ||
run: coverage run --source pytorch_lightning -m pytest -v --timeout 150 --durations=50 --junitxml=results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml | ||
|
||
|
@@ -92,15 +111,15 @@ jobs: | |
if: failure() | ||
|
||
- name: Statistics | ||
if: success() | ||
if: ${{ success() && (steps.skip.outputs.continue == '1') }} | ||
working-directory: tests/tests_pytorch | ||
run: | | ||
coverage report | ||
coverage xml | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
if: success() | ||
if: ${{ success() && (steps.skip.outputs.continue == '1') }} | ||
# see: https://github.com/actions/toolkit/issues/399 | ||
continue-on-error: true | ||
with: | ||
|
Oops, something went wrong.
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.
This was an accident, no? Opened #14366
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.
All I did is I clicked on the commit and clicked "revert". So I don't know how this happened.