-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |