Skip to content

Make some fields non required in YoutubeVideoSnippetSerializer (#14) #82

Make some fields non required in YoutubeVideoSnippetSerializer (#14)

Make some fields non required in YoutubeVideoSnippetSerializer (#14) #82

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
SECRET_KEY: github_actions
services:
postgres:
image: postgres:15.0
env:
POSTGRES_DB: github_actions
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: psycopg prerequisites
run: sudo apt-get install libpq-dev
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- id: cache-pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Django tests
run: |
pipenv run coverage run manage.py test
- name: Code coverage
run: |
pipenv run coverage report -m