Skip to content

Commit

Permalink
Fix testing pipeline (#146)
Browse files Browse the repository at this point in the history
- freeze `pyopengl` to earlier version
 - use `requirements.txt` for github pipeline

Relates: #145
  • Loading branch information
ch-sa committed Jun 4, 2023
1 parent 9639504 commit c180b77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ 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

- 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
Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c180b77

Please sign in to comment.