From c180b7702822ce3090e3ca5b2ca5b7fa7267117f Mon Sep 17 00:00:00 2001 From: Christoph Sager Date: Sun, 4 Jun 2023 19:33:35 +0200 Subject: [PATCH] Fix testing pipeline (#146) - freeze `pyopengl` to earlier version - use `requirements.txt` for github pipeline Relates: #145 --- .github/workflows/unit-tests.yml | 3 +-- requirements.txt | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e63c6c9..d5ff2b9 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install .[tests] + pip install -r requirements.txt - name: Check black formatting uses: psf/black@stable @@ -30,7 +30,6 @@ jobs: - name: Lint with mypy if: ${{ matrix.python-version == '3.9' }} # only lint last Python version run: | - pip install mypy PyQt5-stubs types-pkg-resources types-setuptools mypy labelCloud/. - name: Test with pytest diff --git a/requirements.txt b/requirements.txt index e362055..059b76b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,16 +1,16 @@ -numpy~=1.23.2 -open3d~=0.15.1 -PyOpenGL~=3.1.6 +numpy>=1.21.6 +open3d>=0.15.2 +PyOpenGL==3.1.6 # prevents 'NoneType' object has no attribute 'glGetError' PyOpenGL-accelerate~=3.1.5 PyQt5~=5.15.7 # Testing -pytest~=7.1.2 -pytest-qt~=4.1.0 +pytest~=7.3.1 +pytest-qt~=4.2.0 # Development black~=23.1.0 -mypy~=0.971 +mypy~=1.3.0 PyQt5-stubs~=5.15.6 -types-setuptools~=57.4.17 +types-setuptools~=67.8.0 types-pkg-resources~=0.1.3 \ No newline at end of file