"...text-generation-inference.git" did not exist on "ac736fd89c1f119b770a3385d100a954d2499ff7"
Unverified Commit 2e9cdd19 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

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
parent 7f55738e
......@@ -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
......@@ -1634,7 +1620,6 @@ workflows:
jobs:
- unittest_torchhub
- unittest_onnx
- unittest_prototype
- unittest_extended
- unittest_linux_cpu:
cu_version: cpu
......
......@@ -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
......@@ -1120,7 +1106,6 @@ workflows:
jobs:
- unittest_torchhub
- unittest_onnx
- unittest_prototype
- unittest_extended
{{ unittest_workflows() }}
......
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment