Skip to content

Fix compilation issue by updating package management to pnpm #97

Fix compilation issue by updating package management to pnpm

Fix compilation issue by updating package management to pnpm #97

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
pip install pytest
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install frontend dependencies
run: |
cd frontend
pnpm install
- name: Run backend tests
run: |
cd backend
python -m pytest tests/
- name: Run frontend tests
run: |
cd frontend
pnpm test -- --no-watch