Skip to content

Commit 2e9cdd1

Browse files
authored
add Windows and macOS CI jobs for prototype tests (#5914)
* add Windows and macOS CI jobs for prototype tests * fix CircleCI config * cleanup * use 3.8 as base to surface errors * try using bash explicitly * cleanup * try test reports * debug * disable CircleCI * add write permissions for write * expand permissions * try move permissions on job rather than global * debug * always debug * maximum permissions * cleanup * cleanup
1 parent 7f55738 commit 2e9cdd1

File tree

3 files changed

+44
-30
lines changed

3 files changed

+44
-30
lines changed

.circleci/config.yml

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -357,20 +357,6 @@ jobs:
357357
- run_tests_selective:
358358
file_or_dir: test/test_onnx.py
359359

360-
unittest_prototype:
361-
docker:
362-
- image: cimg/python:3.7
363-
resource_class: xlarge
364-
steps:
365-
- checkout
366-
- install_torchvision
367-
- install_prototype_dependencies
368-
- pip_install:
369-
args: scipy pycocotools h5py
370-
descr: Install optional dependencies
371-
- run_tests_selective:
372-
file_or_dir: test/test_prototype_*.py
373-
374360
unittest_extended:
375361
docker:
376362
- image: cimg/python:3.7
@@ -1120,7 +1106,6 @@ workflows:
11201106
jobs:
11211107
- unittest_torchhub
11221108
- unittest_onnx
1123-
- unittest_prototype
11241109
- unittest_extended
11251110
{{ unittest_workflows() }}
11261111

.github/workflows/prototype-tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
prototype:
8+
strategy:
9+
matrix:
10+
os:
11+
- ubuntu-latest
12+
- windows-latest
13+
- macos-latest
14+
fail-fast: false
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- name: Set up python
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: 3.7
23+
24+
- name: Upgrade system packages
25+
run: python -m pip install --upgrade pip setuptools wheel
26+
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Install PyTorch nightly builds
31+
run: pip install --progress-bar=off --pre torch torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
32+
33+
- name: Install torchvision
34+
run: pip install --progress-bar=off --no-build-isolation --editable .
35+
36+
- name: Install other prototype dependencies
37+
run: pip install --progress-bar=off scipy pycocotools h5py iopath
38+
39+
- name: Install test requirements
40+
run: pip install --progress-bar=off pytest pytest-mock
41+
42+
- name: Run prototype tests
43+
shell: bash
44+
run: pytest --durations=20 test/test_prototype_*.py

0 commit comments

Comments
 (0)