Skip to content

Fix compilation issue by updating package management to pnpm #52

Fix compilation issue by updating package management to pnpm

Fix compilation issue by updating package management to pnpm #52

Workflow file for this run

name: Test Backend
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
working-directory: ./backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'pnpm'
- name: Install pnpm
run: npm install -g pnpm
- name: Install frontend dependencies
run: |
cd frontend
pnpm install
- name: Run frontend tests
run: |
cd frontend
pnpm test
- name: Run backend tests
working-directory: ./backend
env:
TESTING: true
run: |
pytest -v