From 41a0c8e6a2e1ff2d7a973311b801ff2090962496 Mon Sep 17 00:00:00 2001
From: Jesse Mapel <jmapel@usgs.gov>
Date: Thu, 18 Mar 2021 09:49:58 -0700
Subject: [PATCH] Added basic gh actions (#409)

---
 .github/workflows/ci_testing.yml | 33 ++++++++++++++++++++++++++++++++
 environment.yml                  |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 .github/workflows/ci_testing.yml

diff --git a/.github/workflows/ci_testing.yml b/.github/workflows/ci_testing.yml
new file mode 100644
index 0000000..fee3c9b
--- /dev/null
+++ b/.github/workflows/ci_testing.yml
@@ -0,0 +1,33 @@
+name: Pull-Request-CI
+
+on:
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  Continuous-Integration:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: conda-incubator/setup-miniconda@v2
+        with:
+          miniconda-version: "latest"
+          activate-environment: ale
+          environment-file: environment.yml
+      - name: Install Python Package
+        run: |
+          python setup.py install
+      - name: Test Python Package
+        run: |
+           pytest tests/pytests -vv
+      - name: Build C++ Package
+        run: |
+          mkdir -p build
+          cd build
+          cmake -DCMAKE_BUILD_TYPE=RELEASE ..
+          cmake --build .
+      - name: Test C++ Package
+        run: |
+          ctest -VV
+
diff --git a/environment.yml b/environment.yml
index b0d9bf4..c859b97 100644
--- a/environment.yml
+++ b/environment.yml
@@ -17,4 +17,5 @@ dependencies:
   - scipy>=1.4.0
   - spiceypy>=2.3.0
   - pyyaml
+  - pytest
   - networkx
-- 
GitLab