parent
e0f6db7ec3
commit
5202b86287
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue