name: Backend

on:
  push:
    branches:
      - master

  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  checks:

    name: Run tests

    runs-on: ubuntu-latest

    env:
      DJANGO_SETTINGS_MODULE: churchill.settings.test

    steps:

      - name: Check out the repository
        uses: actions/checkout@v2

      - name: Set up Python 3.9.4
        uses: actions/setup-python@v1
        with:
          python-version: 3.9.4

      - name: Cache pip
        uses: actions/cache@v2
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-pip-${{ hashFiles('requirements/dev.txt') }}
          restore-keys: |
            ${{ runner.os }}-pip-
            ${{ runner.os }}-

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements/dev.txt

      - name: Run pytest suite
        run: |
          pytest --ds=churchill.settings.test --disable-warnings --create-db churchill/tests

name: Backend

on:
  push:
    branches:
      - master

  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  checks:

    name: Run tests

    runs-on: ubuntu-latest

    env:
      DJANGO_SETTINGS_MODULE: churchill.settings.test

    steps:

      - name: Check out the repository
        uses: actions/checkout@v2

      - name: Set up Python 3.9.5
        uses: actions/setup-python@v1
        with:
          python-version: 3.9.5

      - name: Cache pip
        uses: actions/cache@v2
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-pip-${{ hashFiles('requirements/dev.txt') }}
          restore-keys: |
            ${{ runner.os }}-pip-
            ${{ runner.os }}-

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements/dev.txt

      - name: Run pytest suite
        run: |
          pytest --ds=churchill.settings.test --disable-warnings --create-db churchill/tests

Update github actions python version
Update github actions python version
