1111 - ubuntu-latest
1212 - windows-latest
1313 - macos-latest
14+ python-version :
15+ - " 3.7"
16+ - " 3.8"
17+ - " 3.9"
18+ - " 3.10"
19+ flag :
20+ - " --pre"
21+ - " "
1422 fail-fast : false
1523
1624 runs-on : ${{ matrix.os }}
1927 - name : Set up python
2028 uses : actions/setup-python@v3
2129 with :
22- python-version : 3.7
30+ python-version : ${{ matrix.python-version }}
2331
2432 - name : Upgrade system packages
2533 run : python -m pip install --upgrade pip setuptools wheel
2836 uses : actions/checkout@v3
2937
3038 - name : Install PyTorch nightly builds
31- run : pip install --progress-bar=off --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
39+ run : pip install --progress-bar=off --pre torchdata torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
40+
41+ - name : Upgrade numpy
42+ run : pip install --upgrade ${{ matrix.flag }} numpy
3243
3344 - name : Install torchvision
3445 run : pip install --progress-bar=off --no-build-isolation --editable .
@@ -43,31 +54,11 @@ jobs:
4354 id : setup
4455 run : exit 0
4556
46- - name : Run prototype datapoints tests
57+ - name : Run prototype datasets tests
4758 shell : bash
4859 run : |
4960 pytest \
5061 --durations=20 \
5162 --cov=torchvision/prototype/datapoints \
5263 --cov-report=term-missing \
53- test/test_prototype_datapoints*.py
54-
55- - name : Run prototype transforms tests
56- if : success() || ( failure() && steps.setup.conclusion == 'success' )
57- shell : bash
58- run : |
59- pytest \
60- --durations=20 \
61- --cov=torchvision/prototype/transforms \
62- --cov-report=term-missing \
63- test/test_prototype_transforms*.py
64-
65- - name : Run prototype models tests
66- if : success() || ( failure() && steps.setup.conclusion == 'success' )
67- shell : bash
68- run : |
69- pytest \
70- --durations=20 \
71- --cov=torchvision/prototype/models \
72- --cov-report=term-missing \
73- test/test_prototype_models*.py
64+ test/test_prototype_datasets*.py
0 commit comments