name: PyTorch Tests

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -e "."
        pip install -r requirements/requirements.txt
        pip install -r requirements/requirements-pytorch.txt
        pip install -r requirements/requirements-dev.txt
    - name: Test with pytest
      run: |
        pytest cleverhans/future/torch/tests

name: PyTorch Tests

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      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
            pip install -e "."
            pip install -r requirements/requirements.txt
            pip install -r requirements/requirements-pytorch.txt
            pip install -r requirements/requirements-dev.txt
        - name: Test with pytest
          run: |
            pytest cleverhans/future/torch/tests

Add condition to PyTorch tests
Add condition to PyTorch tests
