Repository: geoscixyz/geosci-labs (language: python)

Issue:
getting testing back up and running 
We can no longer rely on TravisCI for testing, so we should look at getting testing up and running elsewhere. What do folks think of using github actions for this (cc @jcapriot)? 


Discussion / hints:
Is that different than the azure pipelines we use for SimPEG?

Fix patch:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 45e7082e..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-language: python
-python:
-  - 3.6
-
-sudo: false
-
-env:
-  global:
-    - PYPI_PY=3.6  # deploy to pypi from python 3.6
-    - TWINE_USERNAME=lheagy
-
-env:
-  - TEST=test_dcip.py
-  - TEST=test_em.py
-  - TEST=test_gpr.py
-  - TEST=test_inversion.py
-  - TEST=test_mag.py
-  - TEST=test_seismic.py
-  - TEST=test_gravity.py
-  - TEST=style
-
-# Setup anaconda
-before_install:
-# Install packages
-  - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
-  - chmod +x miniconda.sh
-  - ./miniconda.sh -b -p $HOME/miniconda
-  - export PATH=/home/travis/anaconda/bin:/home/travis/miniconda/bin:$PATH
-  - conda update --yes conda
-
-install:
-  - conda env create -f environment-dev.yml
-  - source activate geosci-labs-dev
-  - pip install -e .
-
-
-# Run test
-script:
-  - if [ $TEST == "style" ]; then
-      make check ;
-    else
-      pytest tests/$TEST -v -s ;
-    fi
-
-# upload to pypi on success and new tag
-deploy:
-  - provider: script
-    script: ci/deploy-pypi.sh
-    on:
-        tags: true
-        branch: master
-
-# notify slack
-notifications:
-  email: false
-  slack: ubcgif:1Z2lR3XYRSM3GHflG71ZHEN6
diff --git a/README.md b/README.md
index fd49b076..89ed791a 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,6 @@
 
 [![binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/geoscixyz/geosci-labs/master?filepath=notebooks%2Findex.ipynb)
 [![pypi](https://img.shields.io/pypi/v/geoscilabs.svg)](https://pypi.python.org/pypi/geoscilabs)
-[![travis](https://travis-ci.org/geoscixyz/geosci-labs.svg?branch=master)](https://travis-ci.org/geoscixyz/geosci-labs)
 [![License](https://img.shields.io/github/license/geoscixyz/geosci-labs.svg)](https://github.com/geoscixyz/geosci-labs/blob/master/LICENSE)
 [![SimPEG](https://img.shields.io/badge/powered%20by-SimPEG-blue.svg)](http://simpeg.xyz)
 


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 00000000..1c96b697
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,46 @@
+name: Testing
+
+on:
+  push:
+    branches:
+      - '*'
+  pull_request:
+    branches:
+      - '*'
+jobs:
+  setup-build:
+    name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: ["ubuntu-latest"]
+        python-version: [3.7, 3.8]
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Setup Conda
+      uses: s-weigand/setup-conda@v1
+      with:
+        update-conda: true
+        conda-channels: conda-forge
+        python-version: ${{ matrix.python-version }}
+
+    - name: Install Env
+      shell: bash
+      run: |
+        python --version
+        conda env create -f environment-dev.yml
+
+    - name: Install Our Package
+      shell: bash
+      run: |
+        source activate geosci-labs-dev
+        pip install -e .
+        conda list
+
+    - name: Run Tests
+      shell: bash
+      run: |
+        source activate geosci-labs-dev
+        pytest .