Skip to content

Commit

Permalink
Start testing on django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Dec 6, 2023
1 parent cedc7d4 commit 182c271
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ on: [push, pull_request]
jobs:
test:
name: Test
strategy:
matrix:
python-version: ["3.10.x", "3.11.x"]
pg-version: ["14", "15"]
django-version: ["4.2.x", "5.0.x"]
env:
python-version: "3.10.x"
pg-version: "14"
redis-version: "6.2"
runs-on: ubuntu-latest
steps:
Expand All @@ -20,15 +23,15 @@ jobs:
- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ env.pg-version }}
postgresql version: ${{ matrix.pg-version }}
postgresql db: dash
postgresql user: dash
postgresql password: rapidpro

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -38,6 +41,7 @@ jobs:
- name: Initialize environment
run: |
poetry install
poetry add django==${{ matrix.django-version }}
- name: Run pre-test checks
run: |
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repository = "http://github.com/rapidpro/dash"

[tool.poetry.dependencies]
python = "^3.10"
Django = "^4.2.7"
Django = ">= 4.2.7, < 5.1"
celery = "^5.1"
django-compressor = "^4.0"
django-redis = "^5.2.0"
Expand Down

0 comments on commit 182c271

Please sign in to comment.