Fix compilation issue by updating package management to pnpm #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main, add-indeed-integration ] | |
pull_request: | |
branches: [ main ] | |
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 dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r backend/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 | |
run: | | |
cd backend | |
pytest -v |