Browse Source

Fix CI backend-tests failing to collect FTP test suite

CI only installed requirements.txt, missing pyOpenSSL from
requirements-dev.txt. This caused an ImportError on
TLS_FTPHandler during test collection, blocking all
unit/services tests. Also adds pytest-timeout to dev deps
instead of ad-hoc pip install in CI.
maziggy 3 months ago
parent
commit
5d0d249f1d
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .github/workflows/ci.yml
  2. 1 0
      requirements-dev.txt

+ 1 - 1
.github/workflows/ci.yml

@@ -96,7 +96,7 @@ jobs:
         run: |
           python -m pip install --upgrade pip
           pip install -r requirements.txt
-          pip install pytest pytest-asyncio pytest-cov pytest-timeout
+          pip install -r requirements-dev.txt
 
       - name: Run tests
         timeout-minutes: 10

+ 1 - 0
requirements-dev.txt

@@ -3,6 +3,7 @@ pytest>=8.0.0
 pytest-asyncio>=0.23.0
 pytest-cov>=4.1.0
 pytest-xdist>=3.5.0
+pytest-timeout>=2.4.0
 httpx>=0.27.0
 ruff>=0.8.0