mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-22 19:25:48 +00:00
Use python3.10 for GH workflows, fix postgres range issues in tests.
This commit is contained in:
parent
1ae7de40d8
commit
a8842b2195
2 changed files with 6 additions and 2 deletions
2
.github/workflows/main-ci.yml
vendored
2
.github/workflows/main-ci.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ['3.9']
|
||||
python-version: ['3.10']
|
||||
|
||||
services:
|
||||
redis:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@ from unittest import skipUnless
|
|||
from django.contrib.postgres.functions import TransactionNow
|
||||
from django.db import connection
|
||||
from django.test import TransactionTestCase, override_settings
|
||||
from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
|
||||
from django.db.backends.postgresql.psycopg_any import (
|
||||
DateRange,
|
||||
DateTimeTZRange,
|
||||
NumericRange,
|
||||
)
|
||||
from pytz import timezone
|
||||
|
||||
from ..utils import UncachableQuery
|
||||
|
|
|
|||
Loading…
Reference in a new issue