Skip to content

Commit

Permalink
Fix CI notebook text and vision tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Jan 29, 2025
1 parent 283ee27 commit 123fceb
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 20 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI-e2e-notebooks-text-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
matrix:
# TODO: add macos
operatingSystem: [ubuntu-latest, windows-latest]
pythonVersion: [3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]
flights: [""]
notebookGroup: ["vis_nb_group_1", "text_nb_group_1"]

Expand Down Expand Up @@ -142,7 +142,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') && (matrix.flights == '') && (matrix.notebookGroup == 'vis_nb_group_1') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -169,5 +170,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: raiwidgets-e2e-screen-shot
name: raiwidgets-ci-e2e-text-vision-screen-shot-${{ matrix.notebookGroup }}-${{ matrix.flights }}-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: ./dist/cypress
7 changes: 4 additions & 3 deletions .github/workflows/CI-notebook-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
operatingSystem: [ubuntu-latest, windows-latest]
pythonVersion: [3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]

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

Expand Down Expand Up @@ -99,7 +99,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -120,5 +121,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: raiwidgets-e2e-screen-shot
name: raiwidgets-ci-notebook-vision-screen-shot-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: dist/cypress
15 changes: 11 additions & 4 deletions .github/workflows/CI-notebook-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
operatingSystem: [ubuntu-latest]
pythonVersion: [3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]

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

Expand Down Expand Up @@ -75,6 +75,12 @@ jobs:
pip install .
working-directory: raiwidgets

- name: Install fastai and latest spacy individually to fix conflicts
shell: bash -l {0}
run: |
pip install fastai
pip install --upgrade "spacy<4"
- name: Install vision dependencies
shell: bash -l {0}
run: |
Expand All @@ -96,7 +102,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -110,12 +117,12 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: notebook-test-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
name: ci-notebook-vision-test-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: notebooks

- name: Upload e2e test screen shot
if: always()
uses: actions/upload-artifact@v4
with:
name: raiwidgets-e2e-screen-shot
name: raiwidgets-ci-notebook-vision-screen-shot-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: dist/cypress
15 changes: 8 additions & 7 deletions .github/workflows/CI-responsibleai-text-vision-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,15 @@ jobs:
matrix:
packageDirectory: ["responsibleai_text", "responsibleai_vision"]
operatingSystem: [ubuntu-latest, macos-latest, windows-latest]
pythonVersion: ["3.8", "3.9", "3.10"]
pythonVersion: ["3.9", "3.10"]
# TODO: re-add macos-latest once build timeout issues are resolved
exclude:
- packageDirectory: "responsibleai_text"
operatingSystem: macos-latest
pythonVersion: "3.8"
- packageDirectory: "responsibleai_text"
operatingSystem: macos-latest
pythonVersion: "3.9"
- packageDirectory: "responsibleai_text"
operatingSystem: macos-latest
pythonVersion: "3.10"
- packageDirectory: "responsibleai_vision"
operatingSystem: macos-latest
pythonVersion: "3.8"
- packageDirectory: "responsibleai_vision"
operatingSystem: macos-latest
pythonVersion: "3.9"
Expand Down Expand Up @@ -78,6 +72,13 @@ jobs:
pip install tf-keras
pip install keras==2.15
- if: ${{ (matrix.packageDirectory == 'responsibleai_vision') }}
name: Install fastai and latest spacy individually to fix conflicts
shell: bash -l {0}
run: |
pip install fastai
pip install --upgrade "spacy<4"
- name: Install dependencies
shell: bash -l {0}
run: |
Expand Down
4 changes: 1 addition & 3 deletions responsibleai_vision/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ sphinx==3.1.1
sphinx-gallery==0.8.1
pydata-sphinx-theme==0.3.0

tensorflow<=2.15
tensorflow
transformers
datasets
opencv-python

fastai
mlflow
pydantic<2.0.0
piexif

0 comments on commit 123fceb

Please sign in to comment.