From d733e204f60367f18bcdc19396d7429ff1e46b9a Mon Sep 17 00:00:00 2001
From: Quoc-Tuan Truong <tqtg@users.noreply.github.com>
Date: Thu, 8 Jul 2021 23:28:07 +0800
Subject: [PATCH] Add GH actions and reorganize CI (#418)

---
 .../ISSUE_TEMPLATE.md                         |  0
 .../PULL_REQUEST_TEMPLATE.md                  |  0
 .travis.yml                                   | 38 -------------------
 README.md                                     |  2 +-
 setup.py                                      |  3 +-
 5 files changed, 2 insertions(+), 41 deletions(-)
 rename ISSUE_TEMPLATE.md => .github/ISSUE_TEMPLATE.md (100%)
 rename PULL_REQUEST_TEMPLATE.md => .github/PULL_REQUEST_TEMPLATE.md (100%)
 delete mode 100644 .travis.yml

diff --git a/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
similarity index 100%
rename from ISSUE_TEMPLATE.md
rename to .github/ISSUE_TEMPLATE.md
diff --git a/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
similarity index 100%
rename from PULL_REQUEST_TEMPLATE.md
rename to .github/PULL_REQUEST_TEMPLATE.md
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index c668a1dd..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-sudo: required
-language: python
-matrix:
-  include:
-  - os: linux
-    env: DISTRIB="trusty" PYTHON_VERSION="3.6"
-  - os: linux
-    env: DISTRIB="trusty" PYTHON_VERSION="3.7"
-  - os: osx
-    language: generic
-    env: DISTRIB="conda" PYTHON_VERSION="3.6"
-  - os: osx
-    language: generic
-    env: DISTRIB="conda" PYTHON_VERSION="3.7"
-install:
-- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
-  -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-  -O miniconda.sh; fi
-- bash miniconda.sh -b -p $HOME/miniconda
-- export PATH="$HOME/miniconda/bin:$PATH"
-- hash -r
-- conda config --set always_yes yes --set changeps1 no
-- conda info -a
-- travis_retry conda create -q -n test-environment python=$PYTHON_VERSION
-- source activate test-environment
-- travis_retry pip install --only-binary=numpy,scipy numpy scipy pytest --quiet
-- pip install -e .[tests]
-script: python -m pytest --cov=cornac
-deploy:
-  provider: pypi
-  user: __token__
-  password:
-    secure: CEy1La5E7RvlrKIq9vHb+aC+P5IAVyqQXfsLwgQcQTUuERlMDoTV6j461ynKCqvLak+lxM0hsAGZ5bGNdC+EEPN8kV1nY2/fhyMk0Fgz7WgyoNlBVr8B0YfCRRp5IRwTvlkcO1PijbvBxjEeSQx7+3o3mX9kgU6KVtyJA95zV4fzd/HgckBBfU31eo7HoNsG+N8CjEnJR+4ZaftMsnvKkb++QJWN80cQ9AM0nBShwyYhSpas8WZ/HFNcJxdoEZ9hkG2ZFars5lVYPzoIcQnii3Homh0TtOKCB4viG7WuuvUab9BrI79UdEV/VqJRYs5TVqCq5YE03rBKPRs4cN+OP2nQUiq9Yhzgo8XfuaEkwxK51/bvb5J5mGIDFrKs6r91j5xXf4qvipcAujwruVHlNmkmahTqtN7ln+eZElW+xI9W7aJPWXOqSMs7ApdSiWFkpTTMuVQLBAI5FbYfbJRfjVwaV+06aGHpRWhHV3zp7pMQZ8ffJ1c16mJETGAlGBFcLKoHx5Ox7prZAtoL2/jbsTCw8uwvm6Ov1qrsIZFHTPXD/yduIG7PA8R8EbMPUHXRrXEpsIs1VsXr2N2q242i3kLcVXiaflwPZDZx7CZx/kPUB59m7JNIhIIfhlmCUOIzrRqSQOtgTWJfbhap8nxt4tO3PrFonW7Hfn1I+bQwX7Y=
-  distributions: sdist bdist_wheel
-  skip_cleanup: true
-  skip_existing: true
-  on:
-    tags: true
diff --git a/README.md b/README.md
index e29c13f0..9ce625cf 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
 [Paper](http://www.jmlr.org/papers/volume21/19-805/19-805.pdf) |
 [Preferred.AI](https://preferred.ai/)
 
-[![TravisCI](https://img.shields.io/travis/PreferredAI/cornac/master.svg?logo=travis)](https://www.travis-ci.org/PreferredAI/cornac)
+[![.github/workflows/python-package.yml](https://github.com/PreferredAI/cornac/actions/workflows/python-package.yml/badge.svg)](https://github.com/PreferredAI/cornac/actions/workflows/python-package.yml)
 [![CircleCI](https://img.shields.io/circleci/project/github/PreferredAI/cornac/master.svg?logo=circleci)](https://circleci.com/gh/PreferredAI/cornac)
 [![AppVeyor](https://ci.appveyor.com/api/projects/status/0yq4td1xg4kkhdwu?svg=true)](https://ci.appveyor.com/project/tqtg/cornac)
 [![Codecov](https://img.shields.io/codecov/c/github/PreferredAI/cornac/master.svg?logo=codecov)](https://codecov.io/gh/PreferredAI/cornac)
diff --git a/setup.py b/setup.py
index e744dff9..8e9586fb 100644
--- a/setup.py
+++ b/setup.py
@@ -306,10 +306,9 @@ setup(
         "Intended Audience :: Education",
         "Intended Audience :: Developers",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.4",
-        "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
+        "Programming Language :: Python :: 3.8",
         "License :: OSI Approved :: Apache Software License",
         "Topic :: Software Development",
         "Topic :: Scientific/Engineering",
-- 
GitLab