1
0
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:
checktheroads
2021-01-01 13:57:39 -07:00
parent 6c00d9ed3d
commit 925a9ad334
2 changed files with 5 additions and 3 deletions

View File

@@ -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'

View File

@@ -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