Skip to content

Commit

Permalink
Loosen Python requirements and GitHub actions versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-mp committed Apr 25, 2024
1 parent 67752df commit 65c6a3a
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 59 deletions.
78 changes: 39 additions & 39 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "Intex Spa integration",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.black-formatter",
"GitHub.vscode-github-actions"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"python.editor.defaultFormatter": "ms-python.black-formatter",
"python.analysis.autoSearchPaths": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
}
"name": "Intex Spa integration",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.black-formatter",
"GitHub.vscode-github-actions"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"python.editor.defaultFormatter": "ms-python.black-formatter",
"python.analysis.autoSearchPaths": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v4.1.2"
- uses: "actions/checkout@v4"

- name: HACS validation
uses: "hacs/action@main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4.1.2"
uses: "actions/checkout@v4"

- name: "Set up Python"
uses: actions/setup-python@v5.0.0
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v4.1.2"
- uses: "actions/checkout@v4"

- name: HACS validation
uses: "hacs/action@main"
Expand All @@ -25,8 +25,8 @@ jobs:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v4.1.2"
- uses: "actions/setup-python@v5.0.0"
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: python3 -m pip install black
Expand All @@ -37,9 +37,9 @@ jobs:
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4.1.2"
uses: "actions/checkout@v4"
- name: Setup Python
uses: "actions/setup-python@v5.0.0"
uses: "actions/setup-python@v5"
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install requirements
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v4.1.2"
- uses: "actions/checkout@v4"

- name: HACS validation
uses: "hacs/action@main"
Expand All @@ -29,8 +29,8 @@ jobs:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v4.1.2"
- uses: "actions/setup-python@v5.0.0"
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: python3 -m pip install black
Expand All @@ -41,9 +41,9 @@ jobs:
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4.1.2"
uses: "actions/checkout@v4"
- name: Setup Python
uses: "actions/setup-python@v5.0.0"
uses: "actions/setup-python@v5"
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install requirements
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
contents: write
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4.1.2"
uses: "actions/checkout@v4"

- name: "Set release version number to manifest.json"
shell: "bash"
Expand All @@ -36,6 +36,6 @@ jobs:
zip intex_spa.zip -r ./
- name: "Upload the ZIP file to the release"
uses: softprops/action-gh-release@v2.0.4
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/custom_components/intex_spa/intex_spa.zip
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
intex-spa==0.9.0
aio-intex-spa==0.9.0
colorlog==6.8.2
aio-intex-spa==0.9.1
colorlog==6.8.*
pip>=21.0,<24.1
ruff==0.3.4
homeassistant==2024.3.1
pytest-homeassistant-custom-component==0.13.108
ruff==0.3.*
homeassistant==2024.3.*
pytest-homeassistant-custom-component==0.13.*

0 comments on commit 65c6a3a

Please sign in to comment.