mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
add app testing to Github Actions [skip ci]
This commit is contained in:
parent
6c00d9ed3d
commit
925a9ad334
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue