From d42308c9861cd5231a2fdf7bae140a30cc791224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 4 May 2023 15:23:17 +0200 Subject: [PATCH] Change: Resolve deprecation warnings in GitHub workflows Use python-version input instead of version --- .github/workflows/ci-python.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index 30fc977..a7c85c2 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -13,9 +13,9 @@ jobs: strategy: matrix: python-version: - - 3.7 - - 3.8 - - 3.9 + - "3.7" + - "3.8" + - "3.9" - "3.10" - "3.11" steps: @@ -24,7 +24,7 @@ jobs: uses: greenbone/actions/lint-python@v2 with: packages: autohooks tests - version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} type-checking: name: Type-checker @@ -32,17 +32,18 @@ jobs: strategy: matrix: python-version: - - 3.7 - - 3.8 - - 3.9 + - "3.7" + - "3.8" + - "3.9" - "3.10" + - "3.11" steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: greenbone/actions/mypy-python@v2 with: packages: autohooks - version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} test: name: Run all tests @@ -50,9 +51,9 @@ jobs: strategy: matrix: python-version: - - 3.7 - - 3.8 - - 3.9 + - "3.7" + - "3.8" + - "3.9" - "3.10" - "3.11" steps: @@ -60,7 +61,7 @@ jobs: - name: Install python, poetry and dependencies uses: greenbone/actions/poetry@v2 with: - version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - name: Run unit tests run: poetry run python -m unittest @@ -73,4 +74,4 @@ jobs: - name: Install and calculate and upload coverage to codecov.io uses: greenbone/actions/coverage-python@v2 with: - version: "3.10" + python-version: "3.10"