Porting waffle_utils>=1.1.0 #290
Workflow file for this run
This file contains 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: Waffle Hub multi-gpu(ddp) test on self-hosted runner | |
on: | |
pull_request: | |
branches: ["*"] | |
jobs: | |
Tests: | |
timeout-minutes: 60 | |
runs-on: self-hosted | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9'] | |
pytorch-version: [ | |
'torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117', | |
'torch==2.0.0+cu117 torchvision==0.15.1+cu117 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu117', | |
'torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2+cu117 --index-url https://download.pytorch.org/whl/cu117' | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install ${{ matrix.pytorch-version }} | |
pip install -r requirements.txt | |
pip install pytest | |
shell: bash # for Windows compatibility | |
- name: Check environment | |
run: | | |
python --version | |
pip --version | |
pip list | |
- name: Pytest tests | |
shell: bash # for Windows compatibility | |
run: python -m pytest tests/test_ddp.py -v |