From 780c074bfe404dbc58986ae344a7fd1cf74e331c Mon Sep 17 00:00:00 2001 From: drozdowsky Date: Fri, 8 Sep 2023 15:59:10 +0200 Subject: [PATCH] Bump version, fix CI --- .github/workflows/pythonpackage.yml | 6 ++++-- setup.cfg | 3 +++ setup.py | 2 +- tests/settings.py | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 63935ec..9e3e50b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -8,13 +8,15 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [2.7, 3.6, 3.7, 3.8, 3.9] + python-version: [3.9, 3.11] services: postgres: image: postgres:10.8 env: + POSTGRES_HOST: postgres POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres ports: - 5432:5432 @@ -39,4 +41,4 @@ jobs: - name: Test with pytest run: | pip install -e . - pytest + python -m pytest diff --git a/setup.cfg b/setup.cfg index 1017c21..51cec1a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,5 +2,8 @@ django_find_project = false DJANGO_SETTINGS_MODULE = tests.settings +[flake8] +extend-ignore = F401,F403,E501 + [wheel] universal = 1 diff --git a/setup.py b/setup.py index adbb70c..068e85b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="django-tracking-model", - version="0.1.6", + version="0.1.7", packages=["tracking_model"], description="Track changes made to django model instance fields.", long_description=README, diff --git a/tests/settings.py b/tests/settings.py index 68c064e..b5b4ad0 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -11,10 +11,10 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", - "NAME": "django_tracking_model", + "NAME": "postgres", "USER": "postgres", "PASSWORD": "postgres", - "HOST": "localhost", + "HOST": "127.0.0.1", "PORT": "", } }