Add condition to PyTorch tests
@@ -16,6 +16,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
+ - id: modified
+ uses: pheel/path-watcher-action@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ paths: 'cleverhans/future/torch/**/*'
+ return_files: true
+ - if: steps.modified.outputs.modified
+ run: |
+ echo "Hey some change happened in one of your watched paths!"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
