Skip to content

Commit 348c30f

Browse files
authored
V0.14.4 (#1378)
1 parent cd4fef9 commit 348c30f

File tree

114 files changed

+4325
-2704
lines changed

Some content is hidden

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

114 files changed

+4325
-2704
lines changed

.github/workflows/black_checker.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: black-format-check
2+
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
18+
19+
env:
20+
#If STRICT is set to true, it will fail on black check fail
21+
STRICT: false
22+
23+
jobs:
24+
25+
black-format-check:
26+
runs-on: ubuntu-latest
27+
steps:
28+
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
with:
32+
submodules: recursive
33+
34+
- name: Setup Python 3.7
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: "3.7"
38+
39+
- name: Install black
40+
run: |
41+
pip install black
42+
43+
- name: Run Black Check
44+
run: |
45+
black --check --diff --line-length 100 ./autosklearn || ! $STRICT
46+
black --check --diff --line-length 100 ./test || ! $STRICT
47+
black --check --diff --line-length 100 ./examples|| ! $STRICT

.github/workflows/dist.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,58 @@
11
name: dist-check
22

3-
on: [push, pull_request]
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
418

519
jobs:
620
dist:
721
runs-on: ubuntu-latest
22+
823
steps:
9-
- uses: actions/checkout@v2
24+
- name: Check out the repo
25+
uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
28+
1029
- name: Setup Python
1130
uses: actions/setup-python@v2
1231
with:
1332
python-version: 3.8
33+
1434
- name: Build dist
1535
run: |
1636
python setup.py sdist
37+
1738
- name: Twine check
1839
run: |
1940
pip install twine
2041
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1)
2142
twine_output=`twine check "$last_dist"`
2243
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]; then echo $twine_output && exit 1;fi
44+
2345
- name: Install dist
2446
run: |
2547
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1)
2648
pip install $last_dist
49+
2750
- name: PEP 561 Compliance
2851
run: |
2952
pip install mypy
53+
3054
cd .. # required to use the installed version of autosklearn
31-
if ! python -c "import autosklearn"; then exit 1; fi
55+
56+
# Note this doesnt perform mypy checks, only
57+
# that the types are exported
58+
if ! mypy -c "import autosklearn"; then exit 1; fi

.github/workflows/docker-publish.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
#https://help.github.com/en/actions/language-and-framework-guides/publishing-docker-images#publishing-images-to-github-packages
22
name: Publish Docker image
3+
34
on:
5+
46
push:
5-
# Push to `master` or `development`
67
branches:
78
- master
89
- development
910
- docker_workflow
1011

1112
jobs:
13+
1214
push_to_registry:
1315
name: Push Docker image to GitHub Packages
1416
runs-on: ubuntu-latest
17+
1518
steps:
1619
- name: Check out the repo
1720
uses: actions/checkout@v2
21+
with:
22+
submodules: recursive
23+
1824
- name: Extract branch name
1925
shell: bash
2026
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
2127
id: extract_branch
28+
2229
- name: Push to GitHub Packages
2330
uses: docker/build-push-action@v1
2431
with:
@@ -28,26 +35,32 @@ jobs:
2835
repository: automl/auto-sklearn/auto-sklearn
2936
tag_with_ref: true
3037
tags: ${{ steps.extract_branch.outputs.branch }}
38+
3139
- name: Push to Docker Hub
3240
uses: docker/build-push-action@v1
3341
with:
3442
username: ${{ secrets.DOCKER_USERNAME }}
3543
password: ${{ secrets.DOCKER_PASSWORD }}
3644
repository: mfeurer/auto-sklearn
3745
tags: ${{ steps.extract_branch.outputs.branch }}
46+
3847
- name: Docker Login
3948
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
4049
env:
4150
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
51+
4252
- name: Pull Docker image
4353
run: docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/auto-sklearn:$BRANCH
4454
env:
4555
BRANCH: ${{ steps.extract_branch.outputs.branch }}
56+
4657
- name: Run image
4758
run: docker run -i -d --name unittester -v $GITHUB_WORKSPACE:/workspace -w /workspace docker.pkg.github.com/$GITHUB_REPOSITORY/auto-sklearn:$BRANCH
4859
env:
4960
BRANCH: ${{ steps.extract_branch.outputs.branch }}
61+
5062
- name: Auto-Sklearn loaded
5163
run: docker exec -i unittester python3 -c 'import autosklearn; print(f"Auto-sklearn imported from {autosklearn.__file__}")'
64+
5265
- name: Run unit testing
5366
run: docker exec -i unittester python3 -m pytest -v test

.github/workflows/docs.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,65 @@
11
name: Docs
2-
on: [pull_request, push]
2+
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
318

419
jobs:
20+
521
build-and-deploy:
622
runs-on: ubuntu-latest
723
steps:
8-
- uses: actions/checkout@v2
24+
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
with:
28+
submodules: recursive
29+
930
- name: Setup Python
1031
uses: actions/setup-python@v2
1132
with:
1233
python-version: 3.8
34+
1335
- name: Install dependencies
1436
run: |
15-
pip install -e .[docs,examples,examples_unix]
37+
pip install -e .[docs,examples]
38+
1639
- name: Make docs
1740
run: |
1841
cd doc
1942
make html
43+
2044
- name: Check links
2145
run: |
2246
cd doc
2347
make linkcheck
48+
2449
- name: Pull latest gh-pages
2550
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
2651
run: |
2752
cd ..
2853
git clone https://github.com/automl/auto-sklearn.git --branch gh-pages --single-branch gh-pages
54+
2955
- name: Copy new doc into gh-pages
3056
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
3157
run: |
3258
branch_name=${GITHUB_REF##*/}
3359
cd ../gh-pages
3460
rm -rf $branch_name
3561
cp -r ../auto-sklearn/doc/build/html $branch_name
62+
3663
- name: Push to gh-pages
3764
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
3865
run: |

.github/workflows/isort_checker.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: isort-check
2+
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
18+
19+
env:
20+
#If STRICT is set to true, it will fail on isort check fail
21+
STRICT: false
22+
23+
jobs:
24+
25+
isort-format-check:
26+
runs-on: ubuntu-latest
27+
steps:
28+
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
with:
32+
submodules: recursive
33+
34+
- name: Setup Python 3.7
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: "3.7"
38+
39+
- name: Install isort
40+
run: |
41+
pip install isort
42+
43+
- name: Run isort Check
44+
run: |
45+
isort --check-only autosklearn || ! $STRICT

.github/workflows/pre-commit.yaml

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
11
name: pre-commit
22

3-
on: [push, pull_request]
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
418

519
jobs:
620
run-all-files:
721
runs-on: ubuntu-latest
822
steps:
923
- uses: actions/checkout@v2
24+
with:
25+
submodules: recursive
26+
1027
- name: Setup Python 3.7
1128
uses: actions/setup-python@v2
1229
with:
1330
python-version: 3.7
31+
1432
- name: Install pre-commit
1533
run: |
1634
pip install pre-commit
1735
pre-commit install
36+
1837
- name: Run pre-commit
1938
run: |
2039
pre-commit run --all-files

0 commit comments

Comments
 (0)