From 4175a00dd81b135b1052dc8c68cea21f1b7eeb79 Mon Sep 17 00:00:00 2001 From: ilia1243 <8808144+ilia1243@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:03:55 +0300 Subject: [PATCH] Run mypy on all python versions --- .github/workflows/tests.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b7582afdd..e8a693ed1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -61,11 +61,22 @@ jobs: xenon -a A kubemarine scripts mypy: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: +# - "3.7" # Currently used version of mypy does not work on Python 3.7 + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: ${{ matrix.python-version }} # Install kubemarine with all dependencies except ansible but including mypy and library stubs. # Then uninstall only kubemarine to avoid ambiguity and to surely run mypy on sources. - run: pip install .[mypy] && pip uninstall -y kubemarine