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 f02a960 commit d42308c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 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,43 +24,44 @@ 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:
- 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
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 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

Expand All @@ -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"

0 comments on commit d42308c

Please sign in to comment.