From 23cfd71c3ea6e4b815c44feac30ec5f018ebde9a Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Tue, 2 Jan 2024 23:48:28 +0100 Subject: [PATCH] Test for multiple django version (#78) --- .github/workflows/ci.yaml | 5 +++-- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 09a897d..afda180 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,10 +17,10 @@ jobs: strategy: matrix: python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] - # django-version: ["<4", "<5", "<6"] + django-version: ["<4", "<5", "<6"] steps: - uses: actions/checkout@v2 - - name: Python ${{ matrix.python-version }} # Django ${{ matrix.django-version }} + - name: Python-${{ matrix.python-version }}-django${{ matrix.django-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} @@ -28,6 +28,7 @@ jobs: run: | sudo apt-get install -yqq gettext pip3 install -e ".[dev]" + pip3 install "django${{ matrix.django-version }}" - name: Lint run: | pre-commit run --all-files diff --git a/pyproject.toml b/pyproject.toml index 2df8b20..2bec35d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", ] dependencies = [ - "django>=2.0,<5", + "django>=2.0,<6", "zxcvbn", ] requires-python = ">=3.8.0"