Skip to content

Commit 6f2ba69

Browse files
authored
Bump min HA version to 2023.6.0 and python to 3.11 (#3267)
* Bump min HA version to 2023.6.0 and python to 3.11 * Use proper version in actions * Build action container in PRs * USe official image * add git * add bash
1 parent 715cffd commit 6f2ba69

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hacs/integration",
3-
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
3+
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
44
"postCreateCommand": "scripts/setup",
55
"forwardPorts": [
66
8123

.github/workflows/action-container.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
- '.github/workflows/action-container.yml'
1212
- 'custom_components/**'
1313
- 'action/**'
14+
pull_request:
15+
branches:
16+
- main
17+
paths:
18+
- '.github/workflows/action-container.yml'
19+
- 'custom_components/**'
20+
- 'action/**'
1421

1522
concurrency:
1623
group: container-build-${{ github.ref }}
@@ -27,6 +34,7 @@ jobs:
2734

2835
- name: Login to GitHub Container Registry
2936
uses: docker/[email protected]
37+
if: ${{ github.event_name != 'pull_request' }}
3038
with:
3139
registry: ghcr.io
3240
username: ${{ github.repository_owner }}
@@ -47,6 +55,6 @@ jobs:
4755
uses: docker/[email protected]
4856
with:
4957
context: ./action
50-
push: true
58+
push: ${{ github.event_name != 'pull_request' }}
5159
tags: ${{ steps.meta.outputs.tags }}
5260
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/pytest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python-version: [3.9, "3.10", "3.11"]
21+
python-version: ["3.11"]
2222
steps:
2323
- name: 📥 Checkout the repository
2424
uses: actions/[email protected]
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/[email protected]
2828
id: python
2929
with:
30-
python-version: "3.x"
30+
python-version: ${{ matrix.python-version }}
3131
cache: 'pip'
3232
cache-dependency-path: |
3333
requirements_base.txt
@@ -51,7 +51,7 @@ jobs:
5151
curl -sfSL https://codecov.io/bash | bash -
5252
5353
legacy:
54-
name: With pytest with Home Assistant 2022.11.0
54+
name: With pytest with Home Assistant 2023.6.0
5555
runs-on: ubuntu-latest
5656
steps:
5757
- name: 📥 Checkout the repository
@@ -60,7 +60,7 @@ jobs:
6060
- name: 🛠️ Set up Python 3.9
6161
uses: actions/[email protected]
6262
with:
63-
python-version: "3.9"
63+
python-version: "3.11"
6464
cache: 'pip'
6565
cache-dependency-path: |
6666
requirements_base.txt

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
name: With Home Assistant
8989
strategy:
9090
matrix:
91-
channel: [stable, beta, dev, "2022.11.0"]
91+
channel: [stable, beta, dev, "2023.6.0"]
9292
runs-on: ubuntu-latest
9393
steps:
9494
- name: 📥 Checkout the repository

action/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/ludeeus/alpine/python:3.10
1+
FROM python:3.11-alpine
22

33
WORKDIR /hacs
44

@@ -7,7 +7,9 @@ RUN \
77
libffi-dev \
88
\
99
&& apk add --no-cache --virtual .build-deps \
10+
bash \
1011
gcc \
12+
git \
1113
musl-dev \
1214
\
1315
&& git clone --quiet --depth 1 https://github.com/hacs/integration.git /hacs \

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "HACS",
33
"zip_release": true,
44
"hide_default_branch": true,
5-
"homeassistant": "2022.11.0",
5+
"homeassistant": "2023.6.0",
66
"hacs": "0.19.0",
77
"filename": "hacs.zip"
88
}

0 commit comments

Comments
 (0)