Skip to content

Commit 2cd1d48

Browse files
authored
Merge branch 'development' into use_new_splitter
2 parents 9bcb210 + 887bb10 commit 2cd1d48

File tree

103 files changed

+3834
-2593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+3834
-2593
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: black-format-check
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
#If STRICT is set to true, it will fail on black check fail
7+
STRICT: false
8+
9+
jobs:
10+
11+
black-format-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
20+
- name: Setup Python 3.7
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.7"
24+
25+
- name: Install black
26+
run: |
27+
pip install black
28+
29+
- name: Run Black Check
30+
run: |
31+
black --check --diff --line-length 100 ./autosklearn || ! $STRICT
32+
black --check --diff --line-length 100 ./test || ! $STRICT
33+
black --check --diff --line-length 100 ./examples|| ! $STRICT

.github/workflows/dist.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,34 @@ on: [push, pull_request]
55
jobs:
66
dist:
77
runs-on: ubuntu-latest
8+
89
steps:
9-
- uses: actions/checkout@v2
10+
- name: Check out the repo
11+
uses: actions/checkout@v2
12+
with:
13+
submodules: recursive
14+
1015
- name: Setup Python
1116
uses: actions/setup-python@v2
1217
with:
1318
python-version: 3.8
19+
1420
- name: Build dist
1521
run: |
1622
python setup.py sdist
23+
1724
- name: Twine check
1825
run: |
1926
pip install twine
2027
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1)
2128
twine_output=`twine check "$last_dist"`
2229
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]; then echo $twine_output && exit 1;fi
30+
2331
- name: Install dist
2432
run: |
2533
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1)
2634
pip install $last_dist
35+
2736
- name: PEP 561 Compliance
2837
run: |
2938
pip install mypy

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ jobs:
1212
push_to_registry:
1313
name: Push Docker image to GitHub Packages
1414
runs-on: ubuntu-latest
15+
1516
steps:
1617
- name: Check out the repo
1718
uses: actions/checkout@v2
19+
with:
20+
submodules: recursive
21+
1822
- name: Extract branch name
1923
shell: bash
2024
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
2125
id: extract_branch
26+
2227
- name: Push to GitHub Packages
2328
uses: docker/build-push-action@v1
2429
with:
@@ -28,26 +33,32 @@ jobs:
2833
repository: automl/auto-sklearn/auto-sklearn
2934
tag_with_ref: true
3035
tags: ${{ steps.extract_branch.outputs.branch }}
36+
3137
- name: Push to Docker Hub
3238
uses: docker/build-push-action@v1
3339
with:
3440
username: ${{ secrets.DOCKER_USERNAME }}
3541
password: ${{ secrets.DOCKER_PASSWORD }}
3642
repository: mfeurer/auto-sklearn
3743
tags: ${{ steps.extract_branch.outputs.branch }}
44+
3845
- name: Docker Login
3946
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
4047
env:
4148
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
49+
4250
- name: Pull Docker image
4351
run: docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/auto-sklearn:$BRANCH
4452
env:
4553
BRANCH: ${{ steps.extract_branch.outputs.branch }}
54+
4655
- name: Run image
4756
run: docker run -i -d --name unittester -v $GITHUB_WORKSPACE:/workspace -w /workspace docker.pkg.github.com/$GITHUB_REPOSITORY/auto-sklearn:$BRANCH
4857
env:
4958
BRANCH: ${{ steps.extract_branch.outputs.branch }}
59+
5060
- name: Auto-Sklearn loaded
5161
run: docker exec -i unittester python3 -c 'import autosklearn; print(f"Auto-sklearn imported from {autosklearn.__file__}")'
62+
5263
- name: Run unit testing
5364
run: docker exec -i unittester python3 -m pytest -v test

.github/workflows/docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,42 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
9+
with:
10+
submodules: recursive
11+
912
- name: Setup Python
1013
uses: actions/setup-python@v2
1114
with:
1215
python-version: 3.8
16+
1317
- name: Install dependencies
1418
run: |
15-
pip install -e .[docs,examples,examples_unix]
19+
pip install -e .[docs,examples]
20+
1621
- name: Make docs
1722
run: |
1823
cd doc
1924
make html
25+
2026
- name: Check links
2127
run: |
2228
cd doc
2329
make linkcheck
30+
2431
- name: Pull latest gh-pages
2532
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
2633
run: |
2734
cd ..
2835
git clone https://github.com/automl/auto-sklearn.git --branch gh-pages --single-branch gh-pages
36+
2937
- name: Copy new doc into gh-pages
3038
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
3139
run: |
3240
branch_name=${GITHUB_REF##*/}
3341
cd ../gh-pages
3442
rm -rf $branch_name
3543
cp -r ../auto-sklearn/doc/build/html $branch_name
44+
3645
- name: Push to gh-pages
3746
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
3847
run: |
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: isort-check
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
#If STRICT is set to true, it will fail on isort check fail
7+
STRICT: false
8+
9+
jobs:
10+
11+
black-format-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
20+
- name: Setup Python 3.7
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.7"
24+
25+
- name: Install isort
26+
run: |
27+
pip install isort
28+
29+
- name: Run isort Check
30+
run: |
31+
isort --check-only autosklearn || ! $STRICT

.github/workflows/pre-commit.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
with:
11+
submodules: recursive
12+
1013
- name: Setup Python 3.7
1114
uses: actions/setup-python@v2
1215
with:
1316
python-version: 3.7
17+
1418
- name: Install pre-commit
1519
run: |
1620
pip install pre-commit
1721
pre-commit install
22+
1823
- name: Run pre-commit
1924
run: |
2025
pre-commit run --all-files

.github/workflows/pytest.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Tests
33
on:
44
push:
55
pull_request:
6+
workflow_dispatch:
67
schedule:
78
# Every Monday at 7AM UTC
89
- cron: '0 07 * * 1'
@@ -13,20 +14,23 @@ jobs:
1314

1415
strategy:
1516
matrix:
16-
python-version: [3.7, 3.8, 3.9]
17+
python-version: ['3.7', '3.8', '3.9', '3.10']
1718
use-conda: [true, false]
1819
use-dist: [false]
1920
include:
20-
- python-version: 3.8
21+
- python-version: '3.8'
2122
code-cov: true
22-
- python-version: 3.7
23+
- python-version: '3.7'
2324
use-conda: false
2425
use-dist: true
2526
fail-fast: false
2627

2728
steps:
2829

2930
- uses: actions/checkout@v2
31+
with:
32+
submodules: recursive
33+
3034
- name: Setup Python ${{ matrix.python-version }}
3135
uses: actions/setup-python@v2
3236
# A note on checkout: When checking out the repository that

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "autosklearn/automl_common"]
2+
path = autosklearn/automl_common
3+
url = https://github.com/automl/automl_common

CONTRIBUTING.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,24 @@ Following that we'll tell you about how you can test your changes locally and th
3030
It's important to work off the latest changes on the **development** branch.
3131
```bash
3232
# With https
33-
git clone https://github.com/your-username/auto-sklearn
33+
# Note the --recurse-submodules args, we use a submodule autosklearn/automl_common
34+
# so it needs to be downloaded too
35+
git clone --recurse-submodules https://github.com/your-username/auto-sklearn
3436

3537
# ... or with ssh
36-
git clone [email protected]:your-username/auto-sklearn.git
38+
git clone --recurse-submodules [email protected]:your-username/auto-sklearn.git
3739

3840
# Navigate into the cloned repo
3941
cd auto-sklearn
4042

4143
# Create a new branch based off the development one
4244
git checkout -b my_new_branch development
4345

46+
# If you missed the --recurse-submodules arg during clone or need to install the
47+
# submodule manually, then execute the following line:
48+
#
49+
# git submodule udate --init --recursive
50+
4451
# ... Alternatively, if you would prefer a more manual method
4552
# Show all the available branches with a * beside your current one
4653
git branch
@@ -50,6 +57,11 @@ Following that we'll tell you about how you can test your changes locally and th
5057

5158
# Create a new branch based on the currently active branch
5259
git checkout -b my_new_branch
60+
61+
# If you missed the --recurse-submodules arg during clone or need to install the
62+
# submodule manually, then execute the following line:
63+
#
64+
# git submodule udate --init --recursive
5365
```
5466

5567
The reason to create a new branch is two fold:
@@ -81,7 +93,7 @@ Following that we'll tell you about how you can test your changes locally and th
8193
# If you're using shells other than bash you'll need to use
8294
pip install -e ".[test,examples,doc]"
8395
```
84-
* If you're only exposure to using pip is `pip install package_name` then this might be a bit confusing.
96+
* If your only exposure to using pip is `pip install package_name` then this might be a bit confusing.
8597
* If we type `pip install -e .` (notice the 'dot'), this tells `pip` to install a package located here, in this directory, `.`.
8698
The `-e` flag indicates that it should be editable, meaning you will not have to run `pip install .` every time you make a change and want to try it.
8799
* Finally the `[test,examples,doc]` tells `pip` that there's some extra optional dependencies that we want to install.
@@ -335,6 +347,9 @@ Lastly, if the feature really is a game changer or you're very proud of it, cons
335347
cd auto-sklearn
336348
git checkout -b my_new_branch development
337349
350+
# Initialize autosklearn/automl_common submodule
351+
git submodule update --init --recursive
352+
338353
# Create a virtual environment and activate it so there are no package
339354
# conflicts
340355
python -m venv my-virtual-env

MANIFEST.in

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
recursive-include autosklearn/metalearning/files *.arff
2-
recursive-include autosklearn/metalearning/files *.csv
3-
recursive-include autosklearn/metalearning/files *.txt
4-
include autosklearn/util/logging.yaml
1+
include LICENSE.txt
52
include requirements.txt
3+
include autosklearn/util/logging.yaml
64
include autosklearn/requirements.txt
7-
recursive-include autosklearn/experimental/ *.json
8-
include autosklearn/experimental/askl2_training_data.json
9-
include LICENSE.txt
5+
6+
# Meta-data
7+
recursive-include autosklearn/metalearning/files *.arff *.csv *.txt
8+
recursive-include autosklearn/experimental *.json
9+
10+
# Remove tests from automl_common
11+
prune autosklearn/automl_common/test
12+
exclude autosklearn/automl_common/setup.py
13+
14+
# Include automl_common LICENSE and README
15+
include autosklearn/automl_common/LICENSE
16+
include autosklearn/automl_common/README.md
17+

0 commit comments

Comments
 (0)