fix release github actions for RAI vision and text packages (#2536)

This commit is contained in:
Ilya Matiach 2024-02-12 14:31:25 -05:00 коммит произвёл GitHub
Родитель 7eade456c4
Коммит 66da2c07a4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 6 добавлений и 4 удалений

5
.github/workflows/release-rai-text.yml поставляемый
Просмотреть файл

@ -30,7 +30,7 @@ jobs:
- name: Install pytorch
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum cpuonly "numpy<1.24.0" -c pytorch
conda install --yes --quiet pytorch==1.13.1 "torchvision<0.15" cpuonly "numpy<1.24.0" -c pytorch
- name: update and upgrade pip, setuptools, wheel, and twine
shell: bash -l {0}
@ -41,6 +41,7 @@ jobs:
- name: install requirements.txt for responsibleai-text
shell: bash -l {0}
run: |
pip install captum
pip install -r requirements.txt
pip install -r requirements-dev.txt
working-directory: responsibleai_text
@ -62,7 +63,7 @@ jobs:
- name: install responsibleai-text wheel locally
shell: bash -l {0}
run: find ./dist/ -name '*.whl' -exec pip install {} \;
run: find ./dist/ -name '*.whl' -exec pip install {}[qa] \;
working-directory: responsibleai_text
- name: run responsibleai-text tests

5
.github/workflows/release-rai-vision.yml поставляемый
Просмотреть файл

@ -30,13 +30,13 @@ jobs:
- name: Install pytorch
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch
conda install --yes --quiet pytorch==1.13.1 "torchvision<0.15" cpuonly "numpy<1.24.0" -c pytorch
# pycocotools is a downstream dependency of automl requirements, but fails to install with pip
- name: Install pycocotools
shell: bash -l {0}
run: |
conda install pycocotools==2.0.4 -c conda-forge
conda install pycocotools==2.0.6 -c conda-forge
- name: update and upgrade pip, setuptools, wheel, and twine
shell: bash -l {0}
@ -47,6 +47,7 @@ jobs:
- name: install requirements.txt for responsibleai-vision
shell: bash -l {0}
run: |
pip install captum
pip install -r requirements.txt
pip install -r requirements-dev.txt
working-directory: responsibleai_vision