Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/install_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Install & Build

on:
pull_request:
branches:
- 'master'

jobs:
install:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install NPM dependencies
working-directory: frontend
run: npm install --legacy-peer-deps

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt

- name: Add .env file
run: cp backend/.env.template backend/.env

- name: Generate static files
run: python backend/manage.py collectstatic
Loading