Skip to content

fix: update legacy tests to use new error response format #21

fix: update legacy tests to use new error response format

fix: update legacy tests to use new error response format #21

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check formatting (Black)
run: |
black --check Backend/
- name: Run tests with coverage
working-directory: ${{ github.workspace }}
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: pytest tests/ --cov=Backend/note_generator --cov-report=term -v