|
@@ -73,7 +73,7 @@ jobs:
|
|
if [ "${{ matrix.os }}" != "windows-latest" ]; then
|
|
if [ "${{ matrix.os }}" != "windows-latest" ]; then
|
|
conda install -q -y help2man
|
|
conda install -q -y help2man
|
|
fi
|
|
fi
|
|
- pip install hacking pytest 'pytest-qt<4'
|
|
|
|
|
|
+ pip install pytest 'pytest-qt<4'
|
|
|
|
|
|
- name: Install main
|
|
- name: Install main
|
|
shell: bash -l {0}
|
|
shell: bash -l {0}
|
|
@@ -84,13 +84,18 @@ jobs:
|
|
shell: bash -l {0}
|
|
shell: bash -l {0}
|
|
if: matrix.os != 'windows-latest'
|
|
if: matrix.os != 'windows-latest'
|
|
run: |
|
|
run: |
|
|
|
|
+ if [ "${{ matrix.python-version }}" == "2.7" ]; then
|
|
|
|
+ pip install hacking==2.0.0
|
|
|
|
+ else
|
|
|
|
+ pip install hacking==4.1.0
|
|
|
|
+ fi
|
|
flake8 .
|
|
flake8 .
|
|
|
|
|
|
- name: Black
|
|
- name: Black
|
|
shell: bash -l {0}
|
|
shell: bash -l {0}
|
|
if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
|
|
if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
|
|
run: |
|
|
run: |
|
|
- pip install black
|
|
|
|
|
|
+ pip install black==22.1.0
|
|
black --line-length 79 --check --diff labelme
|
|
black --line-length 79 --check --diff labelme
|
|
|
|
|
|
- name: Test with pytest
|
|
- name: Test with pytest
|