summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..e27660fb
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,39 @@
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+ macOS:
+ runs-on: macos-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v1
+ - name: Set Up Python 3.7 to run nox
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.7
+ - name: Set Up Python - ${{ matrix.python-version }}
+ if: matrix.python_version != '3.7'
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install Dependencies
+ run: |
+ python3.7 -m pip install --upgrade nox
+ - name: Run Tests
+ run: |
+ nox -s test-${{ matrix.python-version }}
+ - name: Upload Coverage
+ uses: codecov/codecov-action@v1
+ with:
+ file: ./coverage.xml
+ flags: unittests
+ name: codecov-umbrella
+ yml: ./codecov.yml
+ fail_ci_if_error: true