Skip to content

Commit f40beda

Browse files
authored
Extends github action pytest to allow for tests to run for 60m (up from 45m) (#1239)
* Update total test time out to be 60min * Update total test time out to be 60min
1 parent 2fa3b32 commit f40beda

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/pytest.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010
jobs:
1111
ubuntu:
12-
1312
runs-on: ubuntu-20.04
13+
1414
strategy:
1515
matrix:
1616
python-version: [3.7, 3.8, 3.9]
@@ -25,6 +25,7 @@ jobs:
2525
fail-fast: false
2626

2727
steps:
28+
2829
- uses: actions/checkout@v2
2930
- name: Setup Python ${{ matrix.python-version }}
3031
uses: actions/setup-python@v2
@@ -33,13 +34,15 @@ jobs:
3334
# Otherwise, uses the default branch (master) is used.
3435
with:
3536
python-version: ${{ matrix.python-version }}
37+
3638
- name: Conda Install test dependencies
3739
if: matrix.use-conda == true
3840
run: |
3941
# Miniconda is available in $CONDA env var
4042
$CONDA/bin/conda create -n testenv --yes pip wheel gxx_linux-64 gcc_linux-64 swig python=${{ matrix.python-version }}
4143
$CONDA/envs/testenv/bin/python3 -m pip install --upgrade pip
4244
$CONDA/envs/testenv/bin/pip3 install -e .[test]
45+
4346
- name: Install test dependencies
4447
if: matrix.use-conda == false && matrix.use-dist == false
4548
run: |
@@ -53,6 +56,7 @@ jobs:
5356
sudo apt-get remove swig
5457
sudo apt-get install swig3.0
5558
sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
59+
5660
- name: Dist Install test dependencies
5761
if: matrix.use-conda == false && matrix.use-dist == true
5862
run: |
@@ -65,12 +69,14 @@ jobs:
6569
python setup.py sdist
6670
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1)
6771
pip install $last_dist[test]
72+
6873
- name: Store repository status
6974
id: status-before
7075
run: |
7176
echo "::set-output name=BEFORE::$(git status --porcelain -b)"
77+
7278
- name: Conda Run tests
73-
timeout-minutes: 45
79+
timeout-minutes: 60
7480
if: matrix.use-conda == true
7581
run: |
7682
export OPENBLAS_NUM_THREADS=1
@@ -81,15 +87,17 @@ jobs:
8187
export PATH="$CONDA/envs/testenv/bin:$PATH"
8288
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=autosklearn --cov-report=xml'; fi
8389
$CONDA/envs/testenv/bin/python3 -m pytest --durations=20 --timeout=300 --timeout-method=thread -v $codecov test
90+
8491
- name: Run tests
85-
timeout-minutes: 45
92+
timeout-minutes: 60
8693
if: matrix.use-conda == false
8794
run: |
8895
export OPENBLAS_NUM_THREADS=1
8996
export OMP_NUM_THREADS=1
9097
export MKL_NUM_THREADS=1
9198
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=autosklearn --cov-report=xml'; fi
9299
pytest --durations=20 --timeout=300 --timeout-method=thread -v $codecov test
100+
93101
- name: Check for files left behind by test
94102
if: ${{ always() }}
95103
run: |
@@ -101,6 +109,7 @@ jobs:
101109
echo "Not all generated files have been deleted!"
102110
exit 1
103111
fi
112+
104113
- name: Upload coverage
105114
if: matrix.code-cov && always()
106115
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)