Skip to content

remove average rating field #42

remove average rating field

remove average rating field #42

Workflow file for this run

name: moviesAPI CI/CD
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
env:
MOVIES_DB_URL: ${{ secrets.MOVIES_DB_URL }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
AWSSecretKey: ${{ secrets.AWSSecretKey }}
AWSAccessKeyId: ${{ secrets.AWSAccessKeyId }}
steps:
- name: Start
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v3
with:
python-version: '3.10.6'
- name: Upgrade pip version to latest
run: python -m pip install --upgrade pip
- name: Install app dependencies
run: pip install -r requirements.txt
test:
name: Test Books API
runs-on: ubuntu-latest
env:
MOVIES_DB_URL: ${{ secrets.MOVIES_DB_URL }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
AWSSecretKey: ${{ secrets.AWSSecretKey }}
AWSAccessKeyId: ${{ secrets.AWSAccessKeyId }}
needs:
- build
steps:
- name: start test
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.10.6'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install pytest
run: pip install pytest
- name: Run test
run: pytest
deploy:
name: Deploy
runs-on: ubuntu-latest
# needs:
# - test
steps:
- name: Deploy to Render
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.RENDER_SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}