CI: merge two install steps (#15776)

This commit is contained in:
Jirka Borovec 2022-12-06 04:15:58 +01:00 committed by GitHub
parent ab022ac60f
commit 1549a72779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -77,16 +77,11 @@ jobs:
- name: Switch PyTorch URL - name: Switch PyTorch URL
run: python -c "print('TORCH_URL=https://download.pytorch.org/whl/' + str('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html'))" >> $GITHUB_ENV run: python -c "print('TORCH_URL=https://download.pytorch.org/whl/' + str('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html'))" >> $GITHUB_ENV
- name: Install package - name: Install package & depenencies
env: env:
PACKAGE_NAME: ${{ matrix.pkg-name }} PACKAGE_NAME: ${{ matrix.pkg-name }}
run: | run: |
pip install -e . pytest --upgrade --find-links ${TORCH_URL} pip install -e . -r requirements/app/devel.txt -U -q --find-links ${TORCH_URL}
pip list
- name: Install dependencies
run: |
pip install -r requirements/app/devel.txt --quiet --find-links ${TORCH_URL}
pip list pip list
- name: Setup Node.js - name: Setup Node.js