Remove unncecessary workflow conditions

This commit is contained in:
Orsiris de Jong 2023-12-29 01:20:32 +01:00
parent bbb93ab724
commit 9555d06fb6
2 changed files with 6 additions and 6 deletions

View file

@ -25,7 +25,7 @@ jobs:
if [ -f npbackup/requirements.txt ]; then pip install -r npbackup/requirements.txt; fi
if [ -f upgrade_server/requirements.txt ]; then pip install -r upgrade_server/requirements.txt; fi
- name: Lint with Pylint
if: ${{ matrix.python-version == '3.11' }}
#if: ${{ matrix.python-version == '3.11' }}
run: |
python -m pip install pylint
# Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist
@ -33,7 +33,7 @@ jobs:
python -m pylint --disable=C,W,R --max-line-length=127 npbackup
python -m pylint --disable=C,W,R --max-line-length=127 upgrade_server/upgrade_server
- name: Lint with flake8
if: ${{ matrix.python-version == '3.11' }}
#if: ${{ matrix.python-version == '3.11' }}
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
@ -44,7 +44,7 @@ jobs:
python -m flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics upgrade_server
- name: Lint with Black
# Don't run on python < 3.6 since black does not exist there, run only once
if: ${{ matrix.python-version == '3.11' }}
#if: ${{ matrix.python-version == '3.11' }}
run: |
pip install black
python -m black --check npbackup

View file

@ -26,14 +26,14 @@ jobs:
if (Test-Path "npbackup/requirements.txt") { pip install -r npbackup/requirements.txt }
if (Test-Path "upgrade_server/requirements.txt") { pip install -r upgrade_server/requirements.txt }
- name: Lint with Pylint
if: ${{ matrix.python-version == '3.12' }}
#if: ${{ matrix.python-version == '3.12' }}
run: |
python -m pip install pylint
# Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist
python -m pylint --disable=C,W,R --max-line-length=127 npbackup
python -m pylint --disable=C,W,R --max-line-length=127 upgrade_server/upgrade_server
- name: Lint with flake8
if: ${{ matrix.python-version == '3.12' }}
#if: ${{ matrix.python-version == '3.12' }}
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
@ -44,7 +44,7 @@ jobs:
python -m flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics upgrade_server/upgrade_server
- name: Lint with Black
# Don't run on python < 3.6 since black does not exist there, run only once
if: ${{ matrix.python-version == '3.12' }}
#if: ${{ matrix.python-version == '3.12' }}
run: |
pip install black
python -m black --check npbackup