diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ceac3b..c931471 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -20,7 +23,7 @@ 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 @@ -28,7 +31,7 @@ jobs: - 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 @@ -38,6 +41,7 @@ jobs: - name: Initialize environment run: | poetry install + poetry add django==${{ matrix.django-version }} - name: Run pre-test checks run: | diff --git a/poetry.lock b/poetry.lock index e86f020..e632c1c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1288,4 +1288,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "277234b0cf3d82d22667fe5d6d4cf01a1170d60378879f6cc47f26868f453377" +content-hash = "2981b049c608592e6a3bbc78487d96e2d95e1faf8be067e2c38c3417709a3c23" diff --git a/pyproject.toml b/pyproject.toml index deeae98..4ecc27c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"