Skip to content

Merge pull request #210 from Joeriksson/pyup-pin-django-allauth-0.63.3 #114

Merge pull request #210 from Joeriksson/pyup-pin-django-allauth-0.63.3

Merge pull request #210 from Joeriksson/pyup-pin-django-allauth-0.63.3 #114

Workflow file for this run

name: Django CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
ENVIRONMENT: CI
SENDGRID_PASSWORD: x
SENDGRID_USERNAME: x
SECRET_KEY: 1234
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, '3.10']
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt --use-pep517
- name: Run Tests
run: |
python manage.py test