Skip to content

updated GHA versions, removed node-sass #11

updated GHA versions, removed node-sass

updated GHA versions, removed node-sass #11

name: Lesson 5 SAST
on:
push:
branches:
- lesson-5
jobs:
build_and_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest django_mock_queries six coverage
- name: Unit Tests
run: |
coverage run -m --source=./hangry_api pytest
coverage report
deploy:
needs: [build_and_test]
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: '**PLACEHOLDER** Deploy to Elastic Beanstalk'
run: echo Placeholder for Deployment