diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2361b4..2449271 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,9 +12,9 @@ jobs: strategy: fail-fast: false matrix: - python: ['3.7', '3.8', '3.9'] + python: ['3.8', '3.9', '3.10'] # Time to switch to pytest or nose2?? - # nosetests is broken on 3.10 + # nosetests is broken on 3.11 # AttributeError: module 'collections' has no attribute 'Callable' # https://github.com/nose-devs/nose/issues/1099 django: @@ -22,22 +22,10 @@ jobs: - 'Django~=4.0.0' - 'Django~=4.1.0' - 'Django~=4.2.0' + psycopg: + - 'psycopg2>2.9' + - 'psycopg>=3.1.8' experimental: [false] -# include: -# - python: '3.9' -# django: 'https://github.com/django/django/archive/refs/heads/main.zip#egg=Django' -# experimental: true -# # NOTE this job will appear to pass even when it fails because of -# # `continue-on-error: true`. Github Actions apparently does not -# # have this feature, similar to Travis' allow-failure, yet. -# # https://github.com/actions/toolkit/issues/399 - exclude: - - python: '3.7' - django: 'Django~=4.0.0' - - python: '3.7' - django: 'Django~=4.1.0' - - python: '3.7' - django: 'Django~=4.2.0' services: postgres: image: postgres:latest @@ -64,6 +52,7 @@ jobs: pip install -r requirements/requirements.txt pip install -r requirements/requirements-testing.txt pip install "${{ matrix.django }}" + pip uninstall psycopg psycopg2 && pip install "${{ matrix.psycopg }}" pip freeze - name: Run tests env: