-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd4fef9
commit 348c30f
Showing
114 changed files
with
4,325 additions
and
2,704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: black-format-check | ||
|
||
on: | ||
# Manually triggerable in github | ||
workflow_dispatch: | ||
|
||
# When a push occurs on either of these branches | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
# When a push occurs on a PR that targets these branches | ||
pull_request: | ||
branches: | ||
- master | ||
- development | ||
|
||
env: | ||
#If STRICT is set to true, it will fail on black check fail | ||
STRICT: false | ||
|
||
jobs: | ||
|
||
black-format-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install black | ||
run: | | ||
pip install black | ||
- name: Run Black Check | ||
run: | | ||
black --check --diff --line-length 100 ./autosklearn || ! $STRICT | ||
black --check --diff --line-length 100 ./test || ! $STRICT | ||
black --check --diff --line-length 100 ./examples|| ! $STRICT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,58 @@ | ||
name: dist-check | ||
|
||
on: [push, pull_request] | ||
on: | ||
# Manually triggerable in github | ||
workflow_dispatch: | ||
|
||
# When a push occurs on either of these branches | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
# When a push occurs on a PR that targets these branches | ||
pull_request: | ||
branches: | ||
- master | ||
- development | ||
|
||
jobs: | ||
dist: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Build dist | ||
run: | | ||
python setup.py sdist | ||
- name: Twine check | ||
run: | | ||
pip install twine | ||
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1) | ||
twine_output=`twine check "$last_dist"` | ||
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]; then echo $twine_output && exit 1;fi | ||
- name: Install dist | ||
run: | | ||
last_dist=$(ls -t dist/auto-sklearn-*.tar.gz | head -n 1) | ||
pip install $last_dist | ||
- name: PEP 561 Compliance | ||
run: | | ||
pip install mypy | ||
cd .. # required to use the installed version of autosklearn | ||
if ! python -c "import autosklearn"; then exit 1; fi | ||
# Note this doesnt perform mypy checks, only | ||
# that the types are exported | ||
if ! mypy -c "import autosklearn"; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: isort-check | ||
|
||
on: | ||
# Manually triggerable in github | ||
workflow_dispatch: | ||
|
||
# When a push occurs on either of these branches | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
# When a push occurs on a PR that targets these branches | ||
pull_request: | ||
branches: | ||
- master | ||
- development | ||
|
||
env: | ||
#If STRICT is set to true, it will fail on isort check fail | ||
STRICT: false | ||
|
||
jobs: | ||
|
||
isort-format-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install isort | ||
run: | | ||
pip install isort | ||
- name: Run isort Check | ||
run: | | ||
isort --check-only autosklearn || ! $STRICT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
name: pre-commit | ||
|
||
on: [push, pull_request] | ||
on: | ||
# Manually triggerable in github | ||
workflow_dispatch: | ||
|
||
# When a push occurs on either of these branches | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
# When a push occurs on a PR that targets these branches | ||
pull_request: | ||
branches: | ||
- master | ||
- development | ||
|
||
jobs: | ||
run-all-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install pre-commit | ||
run: | | ||
pip install pre-commit | ||
pre-commit install | ||
- name: Run pre-commit | ||
run: | | ||
pre-commit run --all-files |
Oops, something went wrong.