variables:
  POSTGRES_DB: postgres
  POSTGRES_USER: postgres
  POSTGRES_PASSWORD: ""
  POSTGRES_HOST_AUTH_METHOD: 'trust'
  SP_VERSION: 11-10-stable

stages:
  - test

services:
  - postgres:latest

cache:
  key: "$CI_PROJECT_NAME"
  paths:
    - $HOME/.cache/pip

include:
  - project: thelabnyc/gitlab-ci-templates
    file: /ci/sast.gitlab-ci.yml

test_python37:
  stage: test
  tags:
    - django-oscar
  image: python:3.7
  script:
    - pip install tox
    - tox -e 'py37-django{220,300}-drf{310,311}-oscar{21}'

test_python38:
  stage: test
  tags:
    - django-oscar
  image: python:3.8
  script:
    - pip install tox
    - tox -e 'py38-django{220,300}-drf{310,311}-oscar{21}'

test_pypy3:
  stage: test
  tags:
    - django-oscar
  image: pypy:3
  script:
    - pip install tox
    - tox -e 'pypy3-django{220,300}-drf{310,311}-oscar{21}'

variables:
  POSTGRES_DB: postgres
  POSTGRES_USER: postgres
  POSTGRES_PASSWORD: ""
  POSTGRES_HOST_AUTH_METHOD: 'trust'

stages:
  - test

services:
  - postgres:latest

cache:
  key: "$CI_PROJECT_NAME"
  paths:
    - $HOME/.cache/pip

test_python37:
  stage: test
  tags:
    - django-oscar
  image: python:3.7
  script:
    - pip install tox
    - tox -e 'py37-django{220,300}-drf{310,311}-oscar{21}'

test_python38:
  stage: test
  tags:
    - django-oscar
  image: python:3.8
  script:
    - pip install tox
    - tox -e 'py38-django{220,300}-drf{310,311}-oscar{21}'

test_pypy3:
  stage: test
  tags:
    - django-oscar
  image: pypy:3
  script:
    - pip install tox
    - tox -e 'pypy3-django{220,300}-drf{310,311}-oscar{21}'

Remove SAST / DAST testing since it's never actionable and not worth the maintenence
Remove SAST / DAST testing since it's never actionable and not worth the maintenence
