Skip to content

Upgrade deps and update CHANGELOG.md #308

Upgrade deps and update CHANGELOG.md

Upgrade deps and update CHANGELOG.md #308

Workflow file for this run

name: Test & Coverage
on:
push:
branches:
- main
paths:
- '**/*.py'
- 'requirements.txt'
pull_request:
env:
COVERALLS_PARALLEL: true
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: pip
- name: Install backend dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run backend tests with coverage
working-directory: ${{ github.workspace }}
run: |
pytest tests/backend \
--cov=backend \
--cov-report=lcov:backend/coverage/lcov.info
- name: Upload backend coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: backend/coverage/lcov.info
frontend:
if: false # Disabled until frontend tests are added
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies including dev
working-directory: frontend
run: npm ci
- name: Run frontend tests with coverage
working-directory: frontend
run: npm run test:coverage
- name: Upload frontend coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: frontend/coverage/lcov.info
base-path: frontend
flag-name: frontend