mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
add app testing to Github Actions [skip ci]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Backend Linting
|
||||
name: Backend Testing
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
@@ -6,7 +6,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.6, 3.7, 3.8]
|
||||
python-version: [3.6, 3.8]
|
||||
poetry-version: [1.1.4]
|
||||
os: [ubuntu-20.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -23,3 +23,5 @@ jobs:
|
||||
run: poetry install
|
||||
- name: Flake8
|
||||
run: poetry run flake8 hyperglass
|
||||
- name: Run hyperglass
|
||||
run: '.tests/app/setup.sh'
|
@@ -96,7 +96,7 @@ def build_frontend():
|
||||
default=0,
|
||||
help=f"Number of workers. By default, calculated from CPU cores [{cpu_count(2)}]",
|
||||
)
|
||||
def start(build, direct, workers):
|
||||
def start(build, direct, workers): # noqa: C901
|
||||
"""Start web server and optionally build frontend assets."""
|
||||
try:
|
||||
# Project
|
||||
|
Reference in New Issue
Block a user