Skip to content

Commit

Permalink
Change: Resolve deprecation warnings in GitHub workflows
Browse files Browse the repository at this point in the history
Use python-version input instead of version
  • Loading branch information
bjoernricks committed May 5, 2023
1 parent 5f2c6ac commit 0981783
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -24,17 +24,17 @@ 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
runs-on: 'ubuntu-latest'
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
Expand All @@ -43,25 +43,25 @@ jobs:
uses: greenbone/actions/mypy-python@v2
with:
packages: autohooks
version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}

test:
name: Run all tests
runs-on: "ubuntu-latest"
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: Install 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

Expand All @@ -74,4 +74,4 @@ jobs:
- name: Calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v2
with:
version: "3.10"
python-version: "3.10"

0 comments on commit 0981783

Please sign in to comment.