summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorParide Legovini <paride@ubuntu.com>2022-06-27 16:36:41 +0200
committerGitHub <noreply@github.com>2022-06-27 09:36:41 -0500
commita6624700fc8943197cf9daa53fb6af77a7a5424c (patch)
tree3b1ba16160271d33b7e3a194df7f4b686c07a40d /.github
parentd0f13f456b41fa7679548edef67960dc827b2f65 (diff)
downloadcloud-init-git-a6624700fc8943197cf9daa53fb6af77a7a5424c.tar.gz
CI: add non-blocking run against the linters tip versions (#1531)
Changes: * Tox: the tip-black and tip-isort environments. * Tox: reuse the non-tip commands in the tip- environments. * Add non-blocking (continue-on-error: true) step in the test test matrix to run the tip- linters on ubuntu-latest. * Code fixups to make tip-pylint pass. * Bump the pinned pylint version to 2.13.9 (last version supporting Python 3.6).
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check_format.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/check_format.yml b/.github/workflows/check_format.yml
index 5c3e7c57..7b52d278 100644
--- a/.github/workflows/check_format.yml
+++ b/.github/workflows/check_format.yml
@@ -15,7 +15,11 @@ jobs:
fail-fast: false
matrix:
env: [flake8, mypy, pylint, black, isort]
- runs-on: ubuntu-18.04
+ lint-with:
+ - {tip-versions: false, os: ubuntu-18.04}
+ - {tip-versions: true, os: ubuntu-latest}
+ name: ${{ matrix.lint-with.tip-versions && 'Check format (tip)' || 'Check format (pinned)' }}
+ runs-on: ${{ matrix.lint-with.os }}
steps:
- name: "Checkout #1"
uses: actions/checkout@v3.0.0
@@ -34,7 +38,14 @@ jobs:
run: python3 --version
- name: Test
+ if: matrix.lint-with.tip-versions
env:
# matrix env: not to be confused w/environment variables or testenv
TOXENV: ${{ matrix.env }}
run: tox
+ - name: Test (tip versions)
+ if: matrix.lint-with.tip-versions
+ continue-on-error: true
+ env:
+ TOXENV: tip-${{ matrix.env }}
+ run: tox