diff --git a/.github/workflows/pylint-linux.yaml b/.github/workflows/pylint-linux.yaml index cfcc678..3da82b3 100644 --- a/.github/workflows/pylint-linux.yaml +++ b/.github/workflows/pylint-linux.yaml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest] # python-version: [3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 'pypy-3.6', 'pypy-3.7'] - python-version: ["3.11"] + python-version: ["3.12"] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/pylint-windows.yaml b/.github/workflows/pylint-windows.yaml index cdeb26a..8ef51f1 100644 --- a/.github/workflows/pylint-windows.yaml +++ b/.github/workflows/pylint-windows.yaml @@ -11,7 +11,7 @@ jobs: os: [windows-latest] # Don't use pypy on windows since it does not have pywin32 module # python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"] - python-version: ["3.11"] + python-version: ["3.12"] steps: - uses: actions/checkout@v2 @@ -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.11' }} + 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.11' }} + 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.11' }} + if: ${{ matrix.python-version == '3.12' }} run: | pip install black python -m black --check npbackup