Narrower CI timeouts (#15231)

Narrow CI timeouts
This commit is contained in:
Carlos Mocholí 2022-10-26 12:07:09 +02:00 committed by GitHub
parent e0f6db7ec3
commit 5202b86287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@ jobs:
#- {os: ubuntu-22.04, pkg-name: "LAI", python-version: "3.10", release: "pre"} #- {os: ubuntu-22.04, pkg-name: "LAI", python-version: "3.10", release: "pre"}
- {os: ubuntu-22.04, pkg-name: "lite", python-version: "3.10", release: "pre"} - {os: ubuntu-22.04, pkg-name: "lite", python-version: "3.10", release: "pre"}
timeout-minutes: 45 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -104,6 +104,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -r requirements/lite/devel.txt --upgrade --find-links ${TORCH_URL} pip install -r requirements/lite/devel.txt --upgrade --find-links ${TORCH_URL}
pip install pytest-timeout
pip list pip list
- name: Adjust tests - name: Adjust tests
@ -123,7 +124,7 @@ jobs:
- name: Testing Lite - name: Testing Lite
working-directory: tests/tests_lite working-directory: tests/tests_lite
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003 # NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
run: coverage run --source ${COVERAGE_SCOPE} -m pytest -v --durations=50 --junitxml=results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml run: coverage run --source ${COVERAGE_SCOPE} -m pytest -v --timeout=30 --durations=50 --junitxml=results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
- name: Upload pytest results - name: Upload pytest results
if: failure() if: failure()

View File

@ -105,6 +105,7 @@ jobs:
PACKAGE_NAME: ${{ matrix.pkg-name }} PACKAGE_NAME: ${{ matrix.pkg-name }}
run: | run: |
pip install -e . pytest --upgrade --find-links ${TORCH_URL} pip install -e . pytest --upgrade --find-links ${TORCH_URL}
pip install pytest-timeout
pip list pip list
- name: DocTests PL - name: DocTests PL
@ -174,7 +175,7 @@ jobs:
- name: Testing PyTorch - name: Testing PyTorch
working-directory: tests/tests_pytorch working-directory: tests/tests_pytorch
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003 # NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
run: coverage run --source ${COVERAGE_SCOPE} -m pytest -v --durations=50 --junitxml=results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml run: coverage run --source ${COVERAGE_SCOPE} -m pytest -v --timeout=120 --durations=50 --junitxml=results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ matrix.release }}.xml
- name: Upload pytest results - name: Upload pytest results
if: failure() if: failure()