ci: wheels with continue-on-error (#16675)

This commit is contained in:
Jirka Borovec 2023-02-09 22:51:33 +09:00 committed by GitHub
parent 4f35c7c356
commit fef3465d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 5 deletions

View File

@ -75,10 +75,11 @@ jobs:
- name: Install Lightning package & dependencies
run: |
# do not use `-e` because it will make both packages available since it adds `src` to `sys.path` automatically
pip install .[dev] -U -f ${TORCH_URL} -f ".wheels/"
pip install .[dev] -U -f ${TORCH_URL} -f ".wheels/" --prefer-binary
pip list
- name: Dump handy wheels
if: github.event_name == 'push'
continue-on-error: true
uses: ./.github/actions/pip-wheels
with:
torch-url: ${{ env.TORCH_URL }}

View File

@ -68,16 +68,18 @@ jobs:
path: .wheels
key: pip_wheels # to not being cleand with crone
enableCrossOsArchive: true
- run: ls -lh .wheels/
- 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
- name: Install package & dependencies
run: |
pip install -e .[dev] -U -f ${TORCH_URL} -f ".wheels/"
pip install -e .[dev] -U -f ${TORCH_URL} -f ".wheels/" --prefer-binary
pip list
- name: Dump handy wheels
if: github.event_name == 'push'
continue-on-error: true
uses: ./.github/actions/pip-wheels
with:
torch-url: ${{ env.TORCH_URL }}

View File

@ -92,17 +92,19 @@ jobs:
path: .wheels
key: pip_wheels # to not being cleand with crone
enableCrossOsArchive: true
- run: ls -lh .wheels/
- 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
- name: Install package & dependencies
run: |
pip install -e .[test] "pytest-timeout" -U -f ${TORCH_URL} -f ".wheels/"
pip install -r requirements/fabric/strategies.txt -f ".wheels/"
pip install -e .[test] "pytest-timeout" -U -f ${TORCH_URL} -f ".wheels/" --prefer-binary
pip install -r requirements/fabric/strategies.txt -f ".wheels/" --prefer-binary
pip list
- name: Dump handy wheels
if: github.event_name == 'push'
continue-on-error: true
uses: ./.github/actions/pip-wheels
with:
torch-url: ${{ env.TORCH_URL }}

View File

@ -100,6 +100,7 @@ jobs:
path: .wheels
key: pip_wheels # to not being cleand with crone
enableCrossOsArchive: true
- run: ls -lh .wheels/
- name: Env. variables
run: |
@ -110,10 +111,11 @@ jobs:
- name: Install package & dependencies
run: |
pip install -e .[extra,test] "pytest-timeout" --upgrade -f ${TORCH_URL} -f ".wheels/"
pip install -e .[extra,test] "pytest-timeout" -U -f ${TORCH_URL} -f ".wheels/" --prefer-binary
pip list
- name: Dump handy wheels
if: github.event_name == 'push'
continue-on-error: true
uses: ./.github/actions/pip-wheels
with:
torch-url: ${{ env.TORCH_URL }}