Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI because of deprecation #304

Merged
merged 2 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Linting

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
precommit:
Expand Down Expand Up @@ -73,7 +76,7 @@ jobs:
- name: 🏗 Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: ⤵️ Restore cached Python PIP packages
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: 🏗 Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: ⤵️ Restore cached Python PIP packages
uses: actions/cache@v3
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Testing

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
pytest:
Expand All @@ -23,7 +26,7 @@ jobs:
- name: 🏗 Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: ⤵️ Restore cached Python PIP packages
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -70,7 +73,7 @@ jobs:
- name: 🏗 Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: ⤵️ Restore cached Python PIP packages
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: 🏗 Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: ⤵️ Restore cached Python PIP packages
uses: actions/cache@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository = "https://github.com/klaasnicolaas/python-omnikinverter"
documentation = "https://github.com/klaasnicolaas/python-omnikinverter"
keywords = ["omnik", "inverter", "power", "energy", "async", "client"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
Expand All @@ -30,7 +31,7 @@ aiohttp = ">=3.0.0"
yarl = ">=1.6.0"
asynctest = "^0.13.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
aresponses = "^2.1.6"
bandit = "^1.7.4"
black = "^22.10"
Expand All @@ -57,6 +58,7 @@ pytest-asyncio = "^0.20.2"
pytest-cov = "^4.0.0"
pyupgrade = "^3.2.2"
safety = "^2.3.2"
tomli = "^2.0.1"
vulture = "^2.6"
yamllint = "^1.28.0"
types-cachetools = "^5.2.1"
Expand Down