1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

59 lines
1.3 KiB
YAML
Raw Normal View History

name: Backend Testing
2021-12-06 16:44:46 -07:00
on:
- push
- pull_request
jobs:
2021-01-03 10:31:52 -07:00
backend:
name: Backend Tests
strategy:
fail-fast: false
matrix:
2021-01-01 14:23:15 -07:00
node-version: [14.x]
redis-version: [5, 6]
2021-12-06 16:44:46 -07:00
poetry-version: [1.1.11]
python-version: [3.8, 3.9]
os: [ubuntu-latest]
2021-01-03 10:41:13 -07:00
runs-on: ${{ matrix.os }}
2021-01-01 14:23:15 -07:00
steps:
2021-01-01 14:23:15 -07:00
- name: Git Checkout
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
2021-01-01 14:23:15 -07:00
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
2021-01-01 14:23:15 -07:00
- name: Install Node
2021-12-06 16:44:46 -07:00
uses: actions/setup-node@v2
2021-01-01 14:23:15 -07:00
with:
node-version: ${{ matrix.node-version }}
- name: Start Redis
uses: supercharge/redis-github-action@1.1.0
with:
redis-version: ${{ matrix.redis-version }}
- name: Prepare
2021-12-06 17:31:08 -07:00
run: |
echo "HYPERGLASS_APP_PATH=$HOME/hyperglass" >> $GITHUB_ENV
2021-12-06 17:34:07 -07:00
mkdir -p "$HYPERGLASS_APP_PATH"
2021-12-06 17:12:44 -07:00
- name: Install (Poetry)
run: poetry install
2021-01-01 14:23:15 -07:00
2021-12-06 17:12:44 -07:00
- name: Lint (Flake8)
run: poetry run task lint
- name: Test (PyTest)
run: poetry run task test
2021-01-01 14:23:15 -07:00
- name: Run hyperglass
run: '.tests/ga-backend-app.sh'