Setup gh action to run tests
authorJosh Roesslein <jroesslein@gmail.com>
Wed, 8 Jul 2020 03:25:38 +0000 (20:25 -0700)
committerJosh Roesslein <jroesslein@gmail.com>
Wed, 8 Jul 2020 03:25:38 +0000 (20:25 -0700)
.github/workflows/ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..1d95a10
--- /dev/null
@@ -0,0 +1,24 @@
+name: ci
+
+on: [push]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: [2.7, 3.5, 3.6, 3.7, 3.8, nightly]
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install .[dev,test]
+      - name: Run tests
+        run: |
+          python setup.py nosetests