Skip to content

Commit

Permalink
Adjust python versions and add psycopg2 matrix for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
geophphrie committed Jan 16, 2024
1 parent 6d3b3c4 commit 07f45c4
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,20 @@ 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:
- 'Django~=3.2.0'
- '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
Expand All @@ -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:
Expand Down

0 comments on commit 07f45c4

Please sign in to comment.