Skip to content

Updated CHANGELOG.md and workflows for 1.4.0 release #29

Updated CHANGELOG.md and workflows for 1.4.0 release

Updated CHANGELOG.md and workflows for 1.4.0 release #29

Workflow file for this run

name: Run tests on postgres
on: [push, pull_request]
jobs:
test:
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
django-version:
- "3.2"
- "4.2"
- "5.0"
drf-version:
- "3.14"
exclude:
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: "5.0"
- drf-version: "3.14"
python-version: "3.8"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install psycopg2-binary setuptools
- name: Install Django version
run: |
python -m pip install "Django==${{ matrix.django-version }}.*"
- name: Install DRF version
run: |
python -m pip install "djangorestframework==${{ matrix.drf-version }}.*"
- name: Python, Django and DRF versions
run: |
echo "Python ${{ matrix.python-version }} -> Django ${{ matrix.django-version }} -> DRF ${{ matrix.drf-version }}"
python --version
echo "Django: `django-admin --version`"
echo "DRF: `pip show djangorestframework|grep Version|sed s/Version:\ //`"
- name: Setup environment
run: |
pip install -e .
python setup.py install
- name: Run tests
working-directory: ./tests
run: python manage.py test --settings=settings_postgres