From e48d89c9be2043ca265f3d17ddbd09680eb6a2a3 Mon Sep 17 00:00:00 2001
From: Dillon Daudert <dillondaudert@macbook-pro-2.lan>
Date: Mon, 3 Jan 2022 13:31:12 -0500
Subject: [PATCH] Update CI to github actions; version to 0.1.9

---
 .appveyor.yml            | 43 -------------------------------------
 .github/workflows/CI.yml | 46 ++++++++++++++++++++++++++++++++++++++++
 .travis.yml              | 22 -------------------
 Project.toml             |  4 ++--
 README.md                |  1 -
 5 files changed, 48 insertions(+), 68 deletions(-)
 delete mode 100644 .appveyor.yml
 create mode 100644 .github/workflows/CI.yml
 delete mode 100644 .travis.yml

diff --git a/.appveyor.yml b/.appveyor.yml
deleted file mode 100644
index dfb83b0..0000000
--- a/.appveyor.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-environment:
-  matrix:
-  - julia_version: 1.4
-  - julia_version: 1.5
-  - julia_version: nightly
-
-platform:
-  - x86 # 32-bit
-  - x64 # 64-bit
-
-# # Uncomment the following lines to allow failures on nightly julia
-# # (tests will run but not make your overall status red)
-matrix:
-  allow_failures:
-  - julia_version: nightly
-
-branches:
-  only:
-    - master
-    - /release-.*/
-
-notifications:
-  - provider: Email
-    on_build_success: false
-    on_build_failure: false
-    on_build_status_changed: false
-
-install:
-  - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
-
-build_script:
-  - echo "%JL_BUILD_SCRIPT%"
-  - C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
-
-test_script:
-  - echo "%JL_TEST_SCRIPT%"
-  - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
-
-# # Uncomment to support code coverage upload. Should only be enabled for packages
-# # which would have coverage gaps without running on Windows
-# on_success:
-#   - echo "%JL_CODECOV_SCRIPT%"
-#   - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
new file mode 100644
index 0000000..57d04af
--- /dev/null
+++ b/.github/workflows/CI.yml
@@ -0,0 +1,46 @@
+name: CI
+on:
+  pull_request:
+  push:
+    branches:
+      - master
+    tags: '*'
+jobs:
+  test:
+    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        version:
+          - '1.6'
+          - '1'
+#          - 'nightly'
+        os:
+          - ubuntu-latest
+          - macOS-latest
+          - windows-latest
+        arch:
+          - x64
+    steps:
+      - uses: actions/checkout@v2
+      - uses: julia-actions/setup-julia@v1
+        with:
+          version: ${{ matrix.version }}
+          arch: ${{ matrix.arch }}
+      - uses: actions/cache@v1
+        env:
+          cache-name: cache-artifacts
+        with:
+          path: ~/.julia/artifacts
+          key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
+          restore-keys: |
+            ${{ runner.os }}-test-${{ env.cache-name }}-
+            ${{ runner.os }}-test-
+            ${{ runner.os }}-
+      - uses: julia-actions/julia-buildpkg@v1
+      - uses: julia-actions/julia-runtest@v1
+      - uses: julia-actions/julia-processcoverage@v1
+      - uses: codecov/codecov-action@v1
+        with:
+          file: lcov.info
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index bb825bb..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-language: julia
-os:
-  - linux
-  - osx
-
-julia:
-  - 1.4
-  - 1.5
-  - nightly
-
-script: travis_wait julia --project -e 'using Pkg; Pkg.test(; coverage=true)'
-matrix:
-  - fast_finish: true
-  - allow_failures:
-    - julia: nightly
-
-codecov: true
-coveralls: true
-
-after_success:
-  - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
-  - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
diff --git a/Project.toml b/Project.toml
index 4d97e39..566684a 100644
--- a/Project.toml
+++ b/Project.toml
@@ -1,7 +1,7 @@
 name = "UMAP"
 uuid = "c4f8c510-2410-5be4-91d7-4fbaeb39457e"
 authors = ["Dillon Daudert <dillongdaudert@gmail.com>"]
-version = "0.1.8"
+version = "0.1.9"
 
 [deps]
 Arpack = "7d9fca2a-8960-54d3-9f78-7d1dccf2cb97"
@@ -17,7 +17,7 @@ Arpack = "0.4, 0.5"
 Distances = "0.8, 0.9, 0.10"
 LsqFit = "0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
 NearestNeighborDescent = "0.3"
-julia = "1.4, 1.5"
+julia = "1.6, 1.7"
 
 [extras]
 Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
diff --git a/README.md b/README.md
index 5e3a893..c256a4e 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
 # UMAP.jl
-[![Build Status](https://travis-ci.com/dillondaudert/UMAP.jl.svg?branch=master)](https://travis-ci.com/dillondaudert/UMAP.jl)[![Build status](https://ci.appveyor.com/api/projects/status/bd8r74ingfos7166?svg=true)](https://ci.appveyor.com/project/dillondaudert/umap-jl)
 [![Coverage Status](https://coveralls.io/repos/github/dillondaudert/UMAP.jl/badge.svg?branch=master)](https://coveralls.io/github/dillondaudert/UMAP.jl?branch=master) [![codecov](https://codecov.io/gh/dillondaudert/UMAP.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/dillondaudert/UMAP.jl)
 
 A pure Julia implementation of the [Uniform Manifold Approximation and Projection](https://arxiv.org/abs/1802.03426) dimension reduction