Skip to content

Commit 91ff565

Browse files
committed
ci: timeouts
1 parent 83ce8b9 commit 91ff565

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- os: windows
5454
python: 3.8
5555
runs-on: ${{ matrix.os }}-latest
56-
timeout-minutes: 20
56+
timeout-minutes: 35
5757
defaults:
5858
run:
5959
shell: bash
@@ -73,14 +73,16 @@ jobs:
7373
echo "$HOME/bin" >> $GITHUB_PATH
7474
- name: tox
7575
run: |
76-
if [[ "${{ matrix.os }}" = ubuntu ]]; then
77-
if [[ "${{ matrix.python }}" = "3.8" ]]; then
78-
tox -e py38-tf,py38-tf-keras # full
79-
else
80-
tox # nearly full
81-
fi
76+
TIMEOUT=10m
77+
if [[ "${{ matrix.python }}" = "2.7" ]]; then
78+
TIMEOUT=15m
79+
elif [[ "py${{ matrix.python }}-${{ matrix.os }}" = "py3.8-ubuntu" ]]; then
80+
export TOXENV="py38-tf,py38-tf-keras" # full
81+
fi
82+
if [[ "${{ matrix.os }}" != "ubuntu" ]]; then
83+
tox -e py${PYVER/./} # basic
8284
else
83-
tox -e py${PYVER/./} # basic
85+
timeout $TIMEOUT tox || timeout $TIMEOUT tox || timeout $TIMEOUT tox
8486
fi
8587
env:
8688
PYVER: ${{ matrix.python }}
@@ -89,6 +91,7 @@ jobs:
8991
COVERALLS_PARALLEL: true
9092
COVERALLS_SERVICE_NAME: github
9193
# coveralls needs explicit token
94+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9295
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9396
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
9497
finish:

0 commit comments

Comments
 (0)