diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 603cad99..377cdf16 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,8 +11,13 @@ jobs: strategy: matrix: python-version: [ 3.6, 3.7, 3.8 ] - torch-version: [1.7.1, 1.8.1] + torch-version: [1.7.1, 1.8.0] os: [ubuntu-latest, macos-latest] + include: + - os: ubuntu-latest + path: ~/.cache/pip + - os: macos-latest + path: ~/Library/Caches/pip steps: - uses: actions/checkout@v2 @@ -22,23 +27,11 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Cache pip Linux + - name: Cache pip uses: actions/cache@v2 - if: startsWith(runner.os, 'Linux') with: - # This path is specific to Ubuntu - path: ~/.cache/pip - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - - name: Cache pip macOS - uses: actions/cache@v2 - if: startsWith(runner.os, 'macOS') - with: - # This path is specific to macOS - path: ~/Library/Caches/pip + # This path is depend on os + path: ${{ matrix.path }} # Look to see if there is a cache hit for the corresponding requirements file key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | diff --git a/requirements.txt b/requirements.txt index 7ad01420..22f8af92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ numpy torch==1.7.1 -torchvision==0.8.2 +torchvision>=0.8.2