summaryrefslogtreecommitdiff
path: root/.github/workflows/pythonapp.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pythonapp.yml')
-rw-r--r--.github/workflows/pythonapp.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml
new file mode 100644
index 0000000..d1c6fd7
--- /dev/null
+++ b/.github/workflows/pythonapp.yml
@@ -0,0 +1,43 @@
+name: build
+
+on: [push]
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python 3.7
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.7
+
+ - name: Install package
+ run: make install
+
+ - name: List installed packages
+ run: poetry run pip freeze
+
+ - name: Run linters
+ run: make lint
+
+ test:
+ needs: lint
+ runs-on: ${{ matrix.platform }}
+ strategy:
+ matrix:
+ platform: [ubuntu-latest, macos-latest, windows-latest]
+ python-version: [3.6, 3.7, 3.8]
+ steps:
+ - uses: actions/checkout@v1
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install package
+ run: make install
+
+ - name: Run unit tests
+ run: make test