Skip to content

fix ci configs

fix ci configs #196

Workflow file for this run

name: Backend Testing
on:
- push
- pull_request
jobs:
backend:
name: Backend Tests
strategy:
fail-fast: false
matrix:
node-version: [20.x]
redis-version: [latest]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Rye
uses: sksat/[email protected]
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- name: Prepare
run: |
mkdir -p "$HOME/hyperglass"
echo "HYPERGLASS_APP_PATH=$HOME/hyperglass" >> $GITHUB_ENV
echo "HYPERGLASS_HOST=127.0.0.1" >> $GITHUB_ENV
echo "HYPERGLASS_PORT=8001" >> $GITHUB_ENV
- name: Enter venv
run: . .venv/bin/activate
- name: Install
run: rye install
- name: Lint (Rye)
run: rye lint
- name: Tests (PyTest)
run: task test
- name: Run hyperglass
run: ".tests/ga-backend-app.sh"