Skip to content

Ciup

Ciup #9

Workflow file for this run

name: CI Test
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
matrix:
name: Unittest Matrix
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7","3.8"]
django: [ "11", "22",]
exclude:
- python-version: "3.8"
django: "11"
- python-version: "3.8"
django: "22"
services:
postgres:
image: 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
env:
# Docker image requires a password to be set
POSTGRES_PASSWORD: "postgres"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install tox
- run: tox -v -- -v
env:
TOXENV: py-django${{ matrix.django }}