From 925a9ad334a5955e387d079e9638b4eff550d1a8 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Fri, 1 Jan 2021 13:57:39 -0700 Subject: [PATCH] add app testing to Github Actions [skip ci] --- .github/workflows/{backend-lint.yml => backend.yml} | 6 ++++-- hyperglass/cli/commands.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) rename .github/workflows/{backend-lint.yml => backend.yml} (83%) diff --git a/.github/workflows/backend-lint.yml b/.github/workflows/backend.yml similarity index 83% rename from .github/workflows/backend-lint.yml rename to .github/workflows/backend.yml index 04254a3..c4b407b 100644 --- a/.github/workflows/backend-lint.yml +++ b/.github/workflows/backend.yml @@ -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' diff --git a/hyperglass/cli/commands.py b/hyperglass/cli/commands.py index 28c7de9..214bde0 100644 --- a/hyperglass/cli/commands.py +++ b/hyperglass/cli/commands.py @@ -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