summaryrefslogtreecommitdiff
path: root/.github/workflows/pythonapp.yml
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-01-13 18:26:25 +0100
committerJensDiemer <git@jensdiemer.de>2020-01-13 19:22:21 +0100
commit7ec315292794f8a210b9dd759d4991ed9363d73e (patch)
tree7cf71d89291735dffd265d2fb64e7d972d247909 /.github/workflows/pythonapp.yml
parentc33fac617ada1a97b4f60a471f5dcf32e992fe75 (diff)
downloadcreole-poetry.tar.gz
modernize project:poetry
* remove python v2 support code * reformat code with black * use python f-strings * use poetry * add a Makefile * add github actions * nose -> pytest
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