Skip to content

Commit

Permalink
add linux and windows cpu tests
Browse files Browse the repository at this point in the history
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
Eric Zhang authored and facebook-github-bot committed Jun 6, 2024
1 parent 0df2d73 commit 9ba16d6
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 288 deletions.
271 changes: 0 additions & 271 deletions .circleci/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .circleci/import-tests.sh

This file was deleted.

15 changes: 15 additions & 0 deletions .github/actions/install_detectron2_win/action.yml
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
24 changes: 24 additions & 0 deletions .github/actions/install_windows_dep/action.yml
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}}
8 changes: 8 additions & 0 deletions .github/actions/run_unittests_win/action.yml
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

0 comments on commit 9ba16d6

Please sign in to comment.