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. Also drop pinning on poetry
version 1.4.0. The underlying issue has been resolved already.
  • Loading branch information
bjoernricks committed May 5, 2023
1 parent c43b09c commit bf6fea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
uses: greenbone/actions/lint-python@v2
with:
packages: autohooks tests
version: ${{ matrix.python-version }}
poetry-version: "1.4.0"
python-version: ${{ matrix.python-version }}
cache: "true"

type-check:
Expand All @@ -46,8 +45,7 @@ jobs:
uses: greenbone/actions/mypy-python@v2
with:
packages: autohooks
version: ${{ matrix.python-version }}
poetry-version: "1.4.0"
python-version: ${{ matrix.python-version }}
cache: "true"

test:
Expand All @@ -66,8 +64,7 @@ jobs:
- name: Install poetry and dependencies
uses: greenbone/actions/poetry@v2
with:
version: ${{ matrix.python-version }}
poetry-version: "1.4.0"
python-version: ${{ matrix.python-version }}
cache: "true"
- name: Run unit tests
run: poetry run python -m unittest -v
Expand All @@ -81,8 +78,7 @@ jobs:
- name: Calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v2
with:
version: "3.10"
poetry-version: "1.4.0"
python-version: "3.10"
cache: "true"

check-version:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
- name: Install poetry and dependencies
uses: greenbone/actions/poetry@v2
with:
version: "3.10"
poetry-version: "1.4.0"
python-version: "3.10"
cache: "true"
- name: Build Documentation
run: |
Expand Down

0 comments on commit bf6fea8

Please sign in to comment.