From 0e97ebd3873b117389ce944876bd682ea0bc332e Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 23 Oct 2024 20:02:55 +1300 Subject: [PATCH] Use python 3.12 on Netlify and CI (#4375) --- .github/workflows/lint.yml | 6 +++--- netlify.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c3896cb50..2f0540fdbf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ on: permissions: contents: read - + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -24,10 +24,10 @@ jobs: with: repo: cloudcannon/pagefind - uses: actions/checkout@v4.2.1 - - name: Set up Python 3.8 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - name: Install dependencies run: pip install -r requirements.txt -r requirements_test.txt - name: Register problem matchers diff --git a/netlify.toml b/netlify.toml index da9727eed1..bbcf2f03b1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,7 @@ [build] publish = "_build/html" command = "make netlify" - environment = { BASE_URL = "https://esphome.io" } + environment = { BASE_URL = "https://esphome.io", PYTHON_VERSION = "3.12" } [context.beta] environment = { BASE_URL = "https://beta.esphome.io" }