updated GHA versions, removed node-sass #11
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: 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 |