Specify in readme that we only support pytorch 2.4 and up. (#11512) #1672
This file contains hidden or 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
| name: Unit Tests | |
| on: | |
| push: | |
| branches: [ main, master, release/** ] | |
| pull_request: | |
| branches: [ main, master, release/** ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-2022, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install requirements | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
| pip install -r requirements.txt | |
| - name: Run Unit Tests | |
| run: | | |
| pip install -r tests-unit/requirements.txt | |
| python -m pytest tests-unit |