mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 06:46:13 +08:00
Remove unncecessary workflow conditions
This commit is contained in:
parent
bbb93ab724
commit
9555d06fb6
6
.github/workflows/pylint-linux.yaml
vendored
6
.github/workflows/pylint-linux.yaml
vendored
|
@ -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
|
||||
|
|
6
.github/workflows/pylint-windows.yaml
vendored
6
.github/workflows/pylint-windows.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue