diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12898a4..2320db2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,22 @@ jobs: strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11"] - django: ["3.2", "4.0", "4.1", "4.2"] + python: ["3.10", "3.11", "3.12", "3.13", "3.14"] + django: ["4.2", "5.2", "6.0"] exclude: + - python: "3.13" + django: "4.2" + - python: "3.14" + django: "4.2" + - python: "3.10" + django: "6.0" - python: "3.11" - django: "3.2" - - python: "3.11" - django: "4.0" + django: "6.0" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python }} - name: Install package diff --git a/dev-requirements.txt b/dev-requirements.txt index bea14b4..a72faf0 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,5 @@ -black +black==26.1.0 django-readers -flake8==4.0.1 -isort==5.10.1 -pytest==6.2.5 +flake8==7.3.0 +isort==8.0.0 +pytest==9.0.2 diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..8e81fc2 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,15 @@ +from django.conf import settings + +import django + +if not settings.configured: + settings.configure( + SECRET_KEY="django-readers-debug-tests", + INSTALLED_APPS=["django.contrib.contenttypes"], + DATABASES={ + "default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"} + }, + USE_TZ=True, + ) + + django.setup()