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 618e27b commit d5bbc88
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,16 +24,16 @@ 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 @@ -42,24 +42,24 @@ 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 @@ -72,4 +72,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 d5bbc88

Please sign in to comment.