Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MacOS vision gates #2260

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/CI-e2e-notebooks-text-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "raiwidgets/**"
- "responsibleai_vision/**"
- "responsibleai_text/**"
- ".github/workflows/CI-e2e-notebooks-vision.yml"
- ".github/workflows/CI-e2e-notebooks-text-vision.yml"
- "libs/e2e/src/lib/describer/modelAssessment/**"
- "libs/interpret-vision/**"
- "libs/interpret-text/**"
Expand Down Expand Up @@ -54,11 +54,13 @@ jobs:
strategy:
fail-fast: false
matrix:
# TODO: add macos
operatingSystem: [ubuntu-latest, windows-latest]
operatingSystem: [ubuntu-latest, windows-latest, macos-latest]
pythonVersion: [3.7, 3.8, 3.9, "3.10"]
flights: [""]
notebookGroup: ["vis_nb_group_1", "text_nb_group_1"]
exclude:
- operatingSystem: macos-latest
pythonVersion: "3.7"

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

Expand Down Expand Up @@ -87,11 +89,18 @@ jobs:
auto-update-conda: true
python-version: ${{ matrix.pythonVersion }}

- name: Install pytorch
- if: ${{ matrix.operatingSystem != 'macos-latest' }}
name: Install pytorch on non-MacOS
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch

- if: ${{ matrix.operatingSystem == 'macos-latest' }}
name: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum -c pytorch

- name: Setup tools
shell: bash -l {0}
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/CI-notebook-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ jobs:
node-version: 16.x
strategy:
matrix:
operatingSystem: [ubuntu-latest, windows-latest]
operatingSystem: [ubuntu-latest, windows-latest, macos-latest]
pythonVersion: [3.7, 3.8, 3.9, "3.10"]
exclude:
- operatingSystem: macos-latest
pythonVersion: "3.7"
- operatingSystem: macos-latest
pythonVersion: "3.8"

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

Expand Down