Skip to content

Commit db982d5

Browse files
committed
fix docker workflow (#1526)
* Make docker file install from `setup.py` * Add pytest cache to gitignore * Up timeouts on test_metadata_generation
1 parent 6d44fa6 commit db982d5

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ htmlcov
3838
.coverage
3939
.tox
4040

41+
# Pytest cache
42+
.pytest_cache
43+
4144
# pycharm
4245
.idea
4346

Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ ADD . /auto-sklearn/
3232

3333
# Upgrade pip then install dependencies
3434
RUN pip3 install --upgrade pip
35-
RUN pip3 install pytest>=4.6.* pep8 codecov pytest-cov flake8 openml
36-
RUN cat /auto-sklearn/requirements.txt | xargs -n 1 -L 1 pip3 install
37-
RUN pip3 install jupyter
3835

3936
# Install
40-
RUN pip3 install /auto-sklearn/
37+
RUN pip3 install "/auto-sklearn[test, examples]"

test/test_scripts/test_metadata_generation.py

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313

1414
import unittest
1515

16+
# Abstracted to here to make changing them easier
17+
# seems to be quite fidely with github actions
18+
# Recommended to set a minimum of 60
19+
timeouts = {
20+
1: 60, # create commands
21+
2: 180, # generate metadata
22+
3: 60, # get performance of configurations
23+
4: 90, # Calculate metafeatures
24+
5: 60, # Create aslib files
25+
}
26+
1627

1728
class TestMetadataGeneration(unittest.TestCase):
1829
def setUp(self):

0 commit comments

Comments
 (0)