ci: wheels with continue-on-error (#16675)
This commit is contained in:
parent
4f35c7c356
commit
fef3465d8a
|
@ -75,10 +75,11 @@ jobs:
|
||||||
- name: Install Lightning package & dependencies
|
- name: Install Lightning package & dependencies
|
||||||
run: |
|
run: |
|
||||||
# do not use `-e` because it will make both packages available since it adds `src` to `sys.path` automatically
|
# 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
|
pip list
|
||||||
- name: Dump handy wheels
|
- name: Dump handy wheels
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
continue-on-error: true
|
||||||
uses: ./.github/actions/pip-wheels
|
uses: ./.github/actions/pip-wheels
|
||||||
with:
|
with:
|
||||||
torch-url: ${{ env.TORCH_URL }}
|
torch-url: ${{ env.TORCH_URL }}
|
||||||
|
|
|
@ -68,16 +68,18 @@ jobs:
|
||||||
path: .wheels
|
path: .wheels
|
||||||
key: pip_wheels # to not being cleand with crone
|
key: pip_wheels # to not being cleand with crone
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
- run: ls -lh .wheels/
|
||||||
|
|
||||||
- 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 & dependencies
|
- name: Install package & dependencies
|
||||||
run: |
|
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
|
pip list
|
||||||
- name: Dump handy wheels
|
- name: Dump handy wheels
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
continue-on-error: true
|
||||||
uses: ./.github/actions/pip-wheels
|
uses: ./.github/actions/pip-wheels
|
||||||
with:
|
with:
|
||||||
torch-url: ${{ env.TORCH_URL }}
|
torch-url: ${{ env.TORCH_URL }}
|
||||||
|
|
|
@ -92,17 +92,19 @@ jobs:
|
||||||
path: .wheels
|
path: .wheels
|
||||||
key: pip_wheels # to not being cleand with crone
|
key: pip_wheels # to not being cleand with crone
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
- run: ls -lh .wheels/
|
||||||
|
|
||||||
- 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 & dependencies
|
- name: Install package & dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -e .[test] "pytest-timeout" -U -f ${TORCH_URL} -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/"
|
pip install -r requirements/fabric/strategies.txt -f ".wheels/" --prefer-binary
|
||||||
pip list
|
pip list
|
||||||
- name: Dump handy wheels
|
- name: Dump handy wheels
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
continue-on-error: true
|
||||||
uses: ./.github/actions/pip-wheels
|
uses: ./.github/actions/pip-wheels
|
||||||
with:
|
with:
|
||||||
torch-url: ${{ env.TORCH_URL }}
|
torch-url: ${{ env.TORCH_URL }}
|
||||||
|
|
|
@ -100,6 +100,7 @@ jobs:
|
||||||
path: .wheels
|
path: .wheels
|
||||||
key: pip_wheels # to not being cleand with crone
|
key: pip_wheels # to not being cleand with crone
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
- run: ls -lh .wheels/
|
||||||
|
|
||||||
- name: Env. variables
|
- name: Env. variables
|
||||||
run: |
|
run: |
|
||||||
|
@ -110,10 +111,11 @@ jobs:
|
||||||
|
|
||||||
- name: Install package & dependencies
|
- name: Install package & dependencies
|
||||||
run: |
|
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
|
pip list
|
||||||
- name: Dump handy wheels
|
- name: Dump handy wheels
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
continue-on-error: true
|
||||||
uses: ./.github/actions/pip-wheels
|
uses: ./.github/actions/pip-wheels
|
||||||
with:
|
with:
|
||||||
torch-url: ${{ env.TORCH_URL }}
|
torch-url: ${{ env.TORCH_URL }}
|
||||||
|
|
Loading…
Reference in New Issue