Skip to content

Commit

Permalink
Merge pull request #307 from BkPankaj/gitActions/installDepend
Browse files Browse the repository at this point in the history
Added installation process through Github Action
  • Loading branch information
BkPankaj authored Jun 2, 2024
2 parents a5797f6 + a6af77f commit 34c630d
Showing 1 changed file with 45 additions and 0 deletions.
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

0 comments on commit 34c630d

Please sign in to comment.