summaryrefslogtreecommitdiff
path: root/.github/workflows/api.yml
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-21 21:22:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:14 +0200
commit67b6ec800df8e023efadb60ae5f7919030b19789 (patch)
tree9aa496408a4097857b6a032b84dd0a396321e1d3 /.github/workflows/api.yml
parent5b4ab37ac7be2b2c34e2fad928b0cd7f3a837263 (diff)
parent04686bf5cef4aea51fd613a158aa8b155763d0e7 (diff)
Merge branch 'master' onto local working copy
Preserve working copy while updating
Diffstat (limited to '.github/workflows/api.yml')
-rw-r--r--.github/workflows/api.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
new file mode 100644
index 00000000..ae67b753
--- /dev/null
+++ b/.github/workflows/api.yml
@@ -0,0 +1,34 @@
+name: REST API
+
+on:
+ push:
+ paths:
+ - 'api/**'
+
+defaults:
+ run:
+ working-directory: api
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ python: [3.8]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+ - name: Lint with pylint
+ run: |
+ ./check.sh
+ - name: Test with pytest
+ run: |
+ pytest opendc