Browse Source

GitHub actions

Jakub Roztocil 3 months ago
parent
commit
faeebf2d7a
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .github/workflows/build.yml

+ 18 - 0
.github/workflows/build.yml

@@ -0,0 +1,18 @@
+name: Build
+on: [push, pull_request]
+jobs:
+  test:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macOS-latest, windows-latest]
+        python-version: [3.6, 3.7, 3.8]
+    steps:
+      - uses: actions/checkout@v1
+      - uses: actions/setup-python@v1
+        with:
+          python-version: ${{ matrix.python-version }}
+      - run: python -m pip install -U pip setuptools wheel
+      - run: python -m pip install -r requirements-test.txt
+      - run: python -m pip install -e .
+      - run: python -m pytest