Skip to content

Commit

Permalink
Bump min HA version to 2023.6.0 and python to 3.11 (#3267)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ludeeus committed Sep 24, 2023
1 parent 715cffd commit 6f2ba69
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hacs/integration",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/action-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
- '.github/workflows/action-container.yml'
- 'custom_components/**'
- 'action/**'
pull_request:
branches:
- main
paths:
- '.github/workflows/action-container.yml'
- 'custom_components/**'
- 'action/**'

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -47,6 +55,6 @@ jobs:
uses: docker/build-push-action@v4.1.1
with:
context: ./action
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11"]
python-version: ["3.11"]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3.5.3
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-python@v4.7.0
id: python
with:
python-version: "3.x"
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements_base.txt
Expand All @@ -51,7 +51,7 @@ jobs:
curl -sfSL https://codecov.io/bash | bash -
legacy:
name: With pytest with Home Assistant 2022.11.0
name: With pytest with Home Assistant 2023.6.0
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
Expand All @@ -60,7 +60,7 @@ jobs:
- name: 🛠️ Set up Python 3.9
uses: actions/setup-python@v4.7.0
with:
python-version: "3.9"
python-version: "3.11"
cache: 'pip'
cache-dependency-path: |
requirements_base.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
name: With Home Assistant
strategy:
matrix:
channel: [stable, beta, dev, "2022.11.0"]
channel: [stable, beta, dev, "2023.6.0"]
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
Expand Down
4 changes: 3 additions & 1 deletion action/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ludeeus/alpine/python:3.10
FROM python:3.11-alpine

WORKDIR /hacs

Expand All @@ -7,7 +7,9 @@ RUN \
libffi-dev \
\
&& apk add --no-cache --virtual .build-deps \
bash \
gcc \
git \
musl-dev \
\
&& git clone --quiet --depth 1 https://github.com/hacs/integration.git /hacs \
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "HACS",
"zip_release": true,
"hide_default_branch": true,
"homeassistant": "2022.11.0",
"homeassistant": "2023.6.0",
"hacs": "0.19.0",
"filename": "hacs.zip"
}

0 comments on commit 6f2ba69

Please sign in to comment.