Skip to content

Commit d75e916

Browse files
committed
[REVERT ME] temporarily add prototype datasets test to CI
1 parent c9d01d9 commit d75e916

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

.github/workflows/prototype-tests.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
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 }}
@@ -19,7 +27,7 @@ jobs:
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
@@ -30,6 +38,9 @@ jobs:
3038
- name: Install PyTorch nightly builds
3139
run: pip install --progress-bar=off --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
3240

41+
- name: Upgrade numpy
42+
run: pip install --upgrade ${{ matrix.flag }} numpy
43+
3344
- name: Install torchvision
3445
run: pip install --progress-bar=off --no-build-isolation --editable .
3546

@@ -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

Comments
 (0)