Repository: NilCoalescing/djangochannelsrestframework (language: python)

Issue:
Install Daphne into test environment
Channels v4 made `daphne` an optional dependency: https://channels.readthedocs.io/en/stable/releases/4.0.0.html#release-notes

This PR ensures that `daphne` is installed into the `test` extra so that CI testing passes.

Related to #168 


Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index ce8140c..59bf659 100644
--- a/setup.py
+++ b/setup.py
@@ -12,9 +12,10 @@
     license="MIT",
     packages=find_packages(exclude=["tests"]),
     include_package_data=True,
-    install_requires=["Django>=2.2", "channels>=3.0", "djangorestframework>=3.0"],
+    install_requires=["Django>=3.2", "channels>=3.0", "djangorestframework>=3.0"],
     extras_require={
         "tests": [
+            "channels[daphne]>3.0"
             "pytest>=7.0.1",
             "pytest-django>=4.5.2",
             "pytest-asyncio>=0.18.1",
@@ -31,6 +32,7 @@
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
         "Framework :: Django",
         "Topic :: Internet :: WWW/HTTP",
     ],


Test patch:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index b35e1cd..86180b9 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -15,24 +15,23 @@ jobs:
       fail-fast: false
       matrix:
         python:
-          - 3.8
-          - 3.9
-          - 3.10.5
+          - "3.8"
+          - "3.9"
+          - "3.10"
+          - "3.11"
         django:
-          - Django==2.2
-          - Django==3.0.4
-          - Django==3.1.3
-          - Django==3.2
-          - Django==4.0.6
+          - Django>=3.2,<3.3
+          - Django>=4.1,<4.2
+          - Django>=4.2,<4.3
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: Set up Python
-        uses: actions/setup-python@v4.0.0
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python }}
       - name: Install
         run: |
-          pip install ${{ matrix.django }}
+          pip install "${{ matrix.django }}"
           pip install .[tests]
       - name: Freeze
         run: pip freeze