Skip to content

Commit

Permalink
Update CI_Workflow.yml test frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
BkPankaj authored Aug 16, 2024
1 parent 98924ad commit eb4fb33
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions .github/workflows/CI_Workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,48 +126,5 @@ jobs:
ls -la frontend/node_modules/.bin
- name: Run frontend test
run: npm test -- --watchAll=false
run: npm start
working-directory: frontend

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

- name: Restore backend artifacts
uses: actions/download-artifact@v4
with:
name: venv
path: .venv

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

- name: Install Selenium dependencies
run: |
python -m pip install --upgrade pip
pip install selenium pyautogui
- name: Install Xvfb
run: sudo apt-get install -y xvfb

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

- name: Verify Python path
run: |
which python
python --version
- name: Reinstall dependencies (ensure Django is installed)
run: pip install -r backend/requirements.txt

- name: Check if Django is installed
run: python3 -m django --version

- name: Generate static files
run: python3 backend/manage.py collectstatic --noinput

- name: Start backend server
run: python3 manage.py runserver 8080
working-directory: backend

0 comments on commit eb4fb33

Please sign in to comment.