Repository: ray-project/tune-sklearn (language: python)

Issue:
Remove `.travis.yml`
> All that matters is that github actions pass, Travis is a bit outdated

_Originally posted by @Yard1 in https://github.com/ray-project/tune-sklearn/issues/192#issuecomment-793628480_

I like green tickmarks :) Happy to provide a small PR? ;)


Discussion / hints:
hmm OK i guess that's fine -- push a PR :) ?

Fix patch:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index cec22700..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,75 +0,0 @@
-language: python
-dist: xenial
-
-matrix:
-  include:
-    - os: linux
-      python: 3.7
-      env: PYTHON=3.7 OS=LINUX SKLEARN_N_JOBS=1 RAY_MASTER=1
-      before_script: pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
-    - os: osx
-      osx_image: xcode10.2
-      language: generic
-      env: PYTHON=3.6 PYTHONWARNINGS=ignore OS=MAC SKLEARN_N_JOBS=1
-      before_script: pip install -U ray
-    - os: osx
-      osx_image: xcode10.2
-      language: generic
-      env: PYTHON=3.7 PYTHONWARNINGS=ignore OS=MAC SKLEARN_N_JOBS=1
-      before_script: pip install -U ray
-    # Can't get osx wheels to work on master...
-    # - os: osx
-    #   osx_image: xcode9.4
-    #   language: generic
-    #   python: 3.6
-    #   env: PYTHON=3.6 PYTHONWARNINGS=ignore OS=MAC SKLEARN_N_JOBS=1 RAY_MASTER=1
-    #   before_script:
-    #     - pip install -U  https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.9.0.dev0-cp36-cp36m-macosx_10_13_intel.whl
-    #     - pip install -U ray-0.9.0.dev0-cp36-cp36m-macosx_10_13_x86_64.whl
-    # - os: osx
-    #   osx_image: xcode10.2
-    #   language: generic
-    #   python: 3.7
-    #   env: PYTHON=3.7 PYTHONWARNINGS=ignore OS=MAC SKLEARN_N_JOBS=1 RAY_MASTER=1
-    #   before_script:
-    #     - pip install -U  https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.9.0.dev0-cp37-cp37m-macosx_10_13_intel.whl
-    # Quickly Check that linux-latest works.
-    - os: linux
-      python: 3.6
-      env: PYTHON=3.6 OS=LINUX SKLEARN_N_JOBS=1 FAST=1
-      before_script: pip install -U ray
-      script:
-        - if [ "$OS" == "MAC" ]; then brew install -q libomp > /dev/null ; fi
-        - pip3 install -e .
-        - cd tests
-        - chmod +x ./run_examples.sh
-        - PYTHON=python3 bash ./run_examples.sh
-
-notifications:
-  email: false
-
-install:
-  - pip3 install -U -q pip
-  - pip3 install -U -q scikit-optimize hyperopt hpbandster ConfigSpace scipy dataclasses optuna==2.5.0
-  - pip3 install -q -r requirements-test.txt
-  - pip3 install --upgrade -q keras
-  - pip3 install -U -q scikit-learn pytest
-  # Nightly wheel installation
-  # - pip3 install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple -U scikit-learn
-
-script:
-  - if [ "$OS" == "MAC" ]; then brew install -q libomp > /dev/null ; fi
-  - pip3 install -e .
-  - cd tests
-  - pytest -v --durations=0 -x test_randomizedsearch.py
-  - pytest -v --durations=0 -x test_gridsearch.py
-  - pytest -v --durations=0 -x test_trainable.py
-  - declare -a arr=("AsyncHyperBandScheduler" "HyperBandScheduler" "MedianStoppingRule" "ASHAScheduler"); for s in "${arr[@]}"; do python3 schedulers.py --scheduler "$s"; done
-  - chmod +x ./run_examples.sh
-  - PYTHON=python3 bash ./run_examples.sh
-  # temporarily disable as scikit-optimize is broken
-  #- if [ "$OS" == "LINUX" ]; then cd ~/ && git clone https://github.com/ray-project/ray && python ray/python/ray/setup-dev.py --yes && python3 ray/doc/#source/tune/_tutorials/tune-sklearn.py; fi
-
-cache:
-  directories:
-    - $HOME/tune-sklearn-cache
diff --git a/README.md b/README.md
index ce976689..4038d6f2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 # tune-sklearn
-[![Build Status](https://travis-ci.com/ray-project/tune-sklearn.svg?branch=master)](https://travis-ci.com/ray-project/tune-sklearn)
+[![pytest](https://github.com/ray-project/tune-sklearn/workflows/Development/badge.svg)](https://github.com/ray-project/tune-sklearn/actions?query=workflow%3A%22Development%22)
 
 Tune-sklearn is a drop-in replacement for Scikit-Learn’s model selection module (GridSearchCV, RandomizedSearchCV) with cutting edge hyperparameter tuning techniques.
 
diff --git a/examples/catboostclassifier.py b/examples/catboostclassifier.py
index a3b6f706..59861e20 100644
--- a/examples/catboostclassifier.py
+++ b/examples/catboostclassifier.py
@@ -25,7 +25,7 @@
     param_distributions=params,
     n_trials=3,
     early_stopping=True,
-    # use_gpu=True # Commented out for testing on travis,
+    # use_gpu=True # Commented out for testing on github actions,
     # but this is how you would use gpu
 )
 
diff --git a/examples/lgbmclassifier.py b/examples/lgbmclassifier.py
index 2a972ca4..3bcd5c6d 100644
--- a/examples/lgbmclassifier.py
+++ b/examples/lgbmclassifier.py
@@ -30,7 +30,7 @@
     param_distributions=params,
     n_trials=3,
     early_stopping=True,
-    # use_gpu=True # Commented out for testing on travis,
+    # use_gpu=True # Commented out for testing on github actions,
     # but this is how you would use gpu
 )
 
diff --git a/examples/xgbclassifier.py b/examples/xgbclassifier.py
index 4013cb08..d7f36ee4 100644
--- a/examples/xgbclassifier.py
+++ b/examples/xgbclassifier.py
@@ -36,7 +36,7 @@
     param_distributions=params,
     n_trials=3,
     early_stopping=True,
-    # use_gpu=True # Commented out for testing on travis,
+    # use_gpu=True # Commented out for testing on github actions,
     # but this is how you would use gpu
 )
 


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3eb4fd47..39dceec9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-﻿name: pytest on push
+﻿name: Development
 
 on: [push, pull_request]
 
diff --git a/tests/format.sh b/tests/format.sh
index 8e45e88f..27c8d55c 100755
--- a/tests/format.sh
+++ b/tests/format.sh
@@ -109,7 +109,7 @@ format_changed() {
     fi
 }
 
-# Format all files, and print the diff to stdout for travis.
+# Format all files, and print the diff to stdout for github actions.
 format_all() {
     yapf --diff "${YAPF_FLAGS[@]}" "${YAPF_EXCLUDES[@]}" tune_sklearn
 }