Skip to content

Huge refactor

Huge refactor #6

Workflow file for this run

name: "Test"
on:
pull_request:
merge_group:
push:
branches:
- master
jobs:
test-controller:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install poetry~=1.8.3
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Cache the virtualenv
uses: actions/cache@v4
with:
path: ./controller/.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
python -m poetry install
working-directory: controller
- name: Run tests
run: |
python -m poetry run python -m pytest -sxv
working-directory: controller
test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: |
npm ci
working-directory: frontend
- name: Install Playwright Browser
run: |
npx playwright install --with-deps
working-directory: frontend
- name: Run tests
run: |
npm run test
working-directory: frontend
test:
runs-on: ubuntu-latest
needs: [test-controller, test-frontend]
steps:
- run: echo "Build successful"