Skip to content

Commit

Permalink
[fbsync] add Windows and macOS CI jobs for prototype tests (#5914)
Browse files Browse the repository at this point in the history
Summary:
* 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

Reviewed By: jdsgomes, NicolasHug

Differential Revision: D36095670

fbshipit-source-id: 9322974d2b7d4b74ae28e1c45ae749a5b3f69c6b
  • Loading branch information
YosuaMichael authored and facebook-github-bot committed May 6, 2022
1 parent e9d785f commit 3156a3e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 30 deletions.
15 changes: 0 additions & 15 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -357,20 +357,6 @@ jobs:
- run_tests_selective:
file_or_dir: test/test_onnx.py

unittest_prototype:
docker:
- image: cimg/python:3.7
resource_class: xlarge
steps:
- checkout
- install_torchvision
- install_prototype_dependencies
- pip_install:
args: scipy pycocotools h5py
descr: Install optional dependencies
- run_tests_selective:
file_or_dir: test/test_prototype_*.py

unittest_extended:
docker:
- image: cimg/python:3.7
Expand Down Expand Up @@ -1120,7 +1106,6 @@ workflows:
jobs:
- unittest_torchhub
- unittest_onnx
- unittest_prototype
- unittest_extended
{{ unittest_workflows() }}

Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/prototype-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: tests

on:
pull_request:

jobs:
prototype:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: 3.7

- name: Upgrade system packages
run: python -m pip install --upgrade pip setuptools wheel

- name: Checkout repository
uses: actions/checkout@v3

- name: Install PyTorch nightly builds
run: pip install --progress-bar=off --pre torch torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu/

- name: Install torchvision
run: pip install --progress-bar=off --no-build-isolation --editable .

- name: Install other prototype dependencies
run: pip install --progress-bar=off scipy pycocotools h5py iopath

- name: Install test requirements
run: pip install --progress-bar=off pytest pytest-mock

- name: Run prototype tests
shell: bash
run: pytest --durations=20 test/test_prototype_*.py

0 comments on commit 3156a3e

Please sign in to comment.