From 2ed6fc6ac3d7ae34ebe4b35bc1a6d2f6c7b5b405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 4 May 2023 14:13:31 +0200 Subject: [PATCH] Change: Resolve deprecation warnings in GitHub workflows Use python-version input instead of version --- .github/workflows/ci-python.yml | 6 +++--- .github/workflows/deploy-pypi.yml | 2 +- .github/workflows/github-pages.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index 1b82b766..69c1e6f1 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -22,7 +22,7 @@ jobs: uses: greenbone/actions/lint-python@v2 with: packages: pontos tests scripts - version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} cache: "true" test: @@ -39,7 +39,7 @@ jobs: - name: Install python, poetry and dependencies uses: greenbone/actions/poetry@v2 with: - version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} cache: "true" cache-poetry-installation: "true" - name: Run unit tests @@ -54,7 +54,7 @@ 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" cache: "true" token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index 62e21450..2918b600 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: greenbone/actions/poetry@v2 with: - version: "3.10" + python-version: "3.10" install-dependencies: "false" cache-poetry-installation: "true" - name: Build and publish diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index e2da5fff..b58c1cab 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -31,7 +31,7 @@ jobs: - name: Install poetry and dependencies uses: greenbone/actions/poetry@v2 with: - version: "3.10" + python-version: "3.10" cache: "true" cache-poetry-installation: "true" - name: Build Documentation