Przeglądaj źródła

Update .github/workflows/ci.yml

Kentaro Wada 2 lat temu
rodzic
commit
70add16763
2 zmienionych plików z 5 dodań i 6 usunięć
  1. 4 5
      .github/workflows/ci.yml
  2. 1 1
      requirements-dev.txt

+ 4 - 5
.github/workflows/ci.yml

@@ -50,10 +50,11 @@ jobs:
       run: |
         if [ "${{ matrix.PYTEST_QT_API }}" = "pyside2" ]; then
           conda install -q -y pyside2 -c conda-forge
-        else
-          conda install -q -y pyqt=5
+        # should be installed via pip
+        # else
+        #   conda install -q -y pyqt=5
         fi
-        pip install pytest 'pytest-qt<4'
+        pip install -r requirements-dev.txt
 
     - name: Install main
       shell: bash -l {0}
@@ -64,14 +65,12 @@ jobs:
       shell: bash -l {0}
       if: matrix.os != 'windows-latest'
       run: |
-        pip install hacking==4.1.0
         flake8 .
 
     - name: Black
       shell: bash -l {0}
       if: matrix.os != 'windows-latest'
       run: |
-        pip install black==22.8.0
         black --line-length 79 --check --diff labelme/
 
     - name: Test with pytest

+ 1 - 1
requirements-dev.txt

@@ -1,4 +1,4 @@
-black==22.1.0
+black==22.8.0
 github2pypi==1.0.0
 hacking==4.1.0
 pytest