Skip to content

Commit

Permalink
Always run cpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Jul 25, 2022
1 parent dad0c07 commit 282cbc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci-pytorch_test-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,7 @@ jobs:
- 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
run: echo "::set-output name=continue::1"

- name: Update base dependencies
if: ${{ (steps.skip.outputs.continue == '1') }}
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/ci-pytorch_test-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,7 @@ jobs:
- 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
run: echo "::set-output name=continue::1"

- name: Set up Python ${{ matrix.python-version }}
if: ${{ (steps.skip.outputs.continue == '1') }}
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/ci-pytorch_test-slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@ jobs:
- 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
run: echo "::set-output name=continue::1"

- uses: actions/setup-python@v2
if: ${{ (steps.skip.outputs.continue == '1') }}
Expand Down

0 comments on commit 282cbc5

Please sign in to comment.