2021-01-01 13:57:39 -07:00
|
|
|
name: Backend Testing
|
2021-01-01 11:48:48 -07:00
|
|
|
on: [push, pull_request]
|
2021-01-01 11:47:09 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-01-01 13:57:39 -07:00
|
|
|
python-version: [3.6, 3.8]
|
2021-01-01 11:47:09 -07:00
|
|
|
poetry-version: [1.1.4]
|
|
|
|
os: [ubuntu-20.04]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Run image
|
|
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
2021-01-01 12:07:58 -07:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: poetry install
|
2021-01-01 11:47:09 -07:00
|
|
|
- name: Flake8
|
|
|
|
run: poetry run flake8 hyperglass
|
2021-01-01 13:57:39 -07:00
|
|
|
- name: Run hyperglass
|
|
|
|
run: '.tests/app/setup.sh'
|