-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #5299 add linux and windows cpu tests from circleci Reviewed By: wat3rBro Differential Revision: D58021661 fbshipit-source-id: 768df812f31520d30354db59a6566c9281130884
- Loading branch information
1 parent
0df2d73
commit 9ba16d6
Showing
6 changed files
with
147 additions
and
288 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Install Detectron2" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Detectron2 | ||
shell: bash | ||
run: | | ||
# Remove first, in case it's in the CI cache | ||
pip uninstall -y detectron2 | ||
pip install --progress-bar off -e .[all] | ||
python -m detectron2.utils.collect_env | ||
# TODO: this command fails because windows does not have wget | ||
# ./datasets/prepare_for_tests.sh |
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,24 @@ | ||
name: "Install Dependencies" | ||
inputs: | ||
torch-version: | ||
description: torch version to install | ||
torchvision-version: | ||
description: torch vision version to install, version number or "master" | ||
pytorch-index: | ||
description: where to install torch from | ||
required: false | ||
default: "https://download.pytorch.org/whl/torch_stable.html" | ||
# use test wheels index to have access to RC wheels | ||
# https://download.pytorch.org/whl/test/torch_test.html | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
pip install certifi --ignore-installed # required on windows to workaround some cert issue | ||
pip install numpy cython # required on windows before pycocotools | ||
pip install opencv-python-headless pytest-xdist pycocotools tensorboard onnx | ||
pip install -U git+https://github.com/facebookresearch/iopath | ||
pip install -U git+https://github.com/facebookresearch/fvcore | ||
pip install torch==${{inputs.torch-version}} torchvision==${{inputs.torchvision-version}} -f ${{inputs.pytorch-index}} |
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,8 @@ | ||
name: "Run Unit Tests" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run Unit Tests | ||
shell: bash | ||
run: | | ||
echo TODO: unittest fails for now |
Oops, something went wrong.