diff --git a/.github/workflows/ci-lite-test-full.yml b/.github/workflows/ci-lite-test-full.yml index 099e400100..6469b1fb24 100644 --- a/.github/workflows/ci-lite-test-full.yml +++ b/.github/workflows/ci-lite-test-full.yml @@ -47,7 +47,7 @@ jobs: #- {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"} - timeout-minutes: 45 + timeout-minutes: 10 steps: - uses: actions/checkout@v3 @@ -104,6 +104,7 @@ jobs: - name: Install dependencies run: | pip install -r requirements/lite/devel.txt --upgrade --find-links ${TORCH_URL} + pip install pytest-timeout pip list - name: Adjust tests @@ -123,7 +124,7 @@ jobs: - name: Testing Lite working-directory: tests/tests_lite # 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 if: failure() diff --git a/.github/workflows/ci-pytorch-test-full.yml b/.github/workflows/ci-pytorch-test-full.yml index 236e3037c2..b1c17ccba3 100644 --- a/.github/workflows/ci-pytorch-test-full.yml +++ b/.github/workflows/ci-pytorch-test-full.yml @@ -105,6 +105,7 @@ jobs: PACKAGE_NAME: ${{ matrix.pkg-name }} run: | pip install -e . pytest --upgrade --find-links ${TORCH_URL} + pip install pytest-timeout pip list - name: DocTests PL @@ -174,7 +175,7 @@ jobs: - name: Testing PyTorch working-directory: tests/tests_pytorch # 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 if: failure()