summaryrefslogtreecommitdiff
path: root/.github/workflows/web-server.yml
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-08 17:00:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:00 +0200
commit0e6283dafb3378a4e86de330f3f53aa100b757de (patch)
tree045514ce4e8e708e9fe3a6d505dfaf0353773809 /.github/workflows/web-server.yml
parent5d5b32abb37330f1de5b49dfe639bb65b358f6f1 (diff)
parentb30906bbe0d5f343b337a80de1b4b70ebf288331 (diff)
Merge branch 'master' of github.com:atlarge-research/opendc-dev
Diffstat (limited to '.github/workflows/web-server.yml')
-rw-r--r--.github/workflows/web-server.yml48
1 files changed, 28 insertions, 20 deletions
diff --git a/.github/workflows/web-server.yml b/.github/workflows/web-server.yml
index af843266..6f14f97b 100644
--- a/.github/workflows/web-server.yml
+++ b/.github/workflows/web-server.yml
@@ -1,26 +1,34 @@
name: Web server
-on: [push]
+on:
+ push:
+ paths:
+ - 'web-server/*'
+
+defaults:
+ run:
+ working-directory: web-server
jobs:
build:
- runs-on: ubuntu-latest
+ 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: 3.8
- - name: Install dependencies
- working-directory: web-server
- run: |
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- - name: Lint with pylint
- working-directory: web-server
- run: |
- ./check.sh
- - name: Test with pytest
- working-directory: web-server
- run: |
- pytest opendc
+ - 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