Upgrade CI to use ubuntu 24.04 (#122254)

This commit is contained in:
J. Nick Koston 2024-07-20 09:43:10 -05:00 committed by GitHub
parent 63b0feeae7
commit 43aeaf7a9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ jobs:
tests_glob: ${{ steps.info.outputs.tests_glob }} tests_glob: ${{ steps.info.outputs.tests_glob }}
tests: ${{ steps.info.outputs.tests }} tests: ${{ steps.info.outputs.tests }}
skip_coverage: ${{ steps.info.outputs.skip_coverage }} skip_coverage: ${{ steps.info.outputs.skip_coverage }}
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Check out code from GitHub - name: Check out code from GitHub
uses: actions/checkout@v4.1.7 uses: actions/checkout@v4.1.7
@ -218,7 +218,7 @@ jobs:
pre-commit: pre-commit:
name: Prepare pre-commit base name: Prepare pre-commit base
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
github.event.inputs.pylint-only != 'true' github.event.inputs.pylint-only != 'true'
&& github.event.inputs.mypy-only != 'true' && github.event.inputs.mypy-only != 'true'
@ -266,7 +266,7 @@ jobs:
lint-ruff-format: lint-ruff-format:
name: Check ruff-format name: Check ruff-format
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- pre-commit - pre-commit
@ -306,7 +306,7 @@ jobs:
lint-ruff: lint-ruff:
name: Check ruff name: Check ruff
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- pre-commit - pre-commit
@ -345,7 +345,7 @@ jobs:
RUFF_OUTPUT_FORMAT: github RUFF_OUTPUT_FORMAT: github
lint-other: lint-other:
name: Check other linters name: Check other linters
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- pre-commit - pre-commit
@ -437,7 +437,7 @@ jobs:
base: base:
name: Prepare dependencies name: Prepare dependencies
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: info needs: info
timeout-minutes: 60 timeout-minutes: 60
strategy: strategy:
@ -514,7 +514,7 @@ jobs:
hassfest: hassfest:
name: Check hassfest name: Check hassfest
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
github.event.inputs.pylint-only != 'true' github.event.inputs.pylint-only != 'true'
&& github.event.inputs.mypy-only != 'true' && github.event.inputs.mypy-only != 'true'
@ -552,7 +552,7 @@ jobs:
gen-requirements-all: gen-requirements-all:
name: Check all requirements name: Check all requirements
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
github.event.inputs.pylint-only != 'true' github.event.inputs.pylint-only != 'true'
&& github.event.inputs.mypy-only != 'true' && github.event.inputs.mypy-only != 'true'
@ -584,7 +584,7 @@ jobs:
audit-licenses: audit-licenses:
name: Audit licenses name: Audit licenses
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- base - base
@ -624,7 +624,7 @@ jobs:
pylint: pylint:
name: Check pylint name: Check pylint
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 20 timeout-minutes: 20
if: | if: |
github.event.inputs.mypy-only != 'true' github.event.inputs.mypy-only != 'true'
@ -669,7 +669,7 @@ jobs:
pylint-tests: pylint-tests:
name: Check pylint on tests name: Check pylint on tests
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 20 timeout-minutes: 20
if: | if: |
(github.event.inputs.mypy-only != 'true' || github.event.inputs.pylint-only == 'true') (github.event.inputs.mypy-only != 'true' || github.event.inputs.pylint-only == 'true')
@ -714,7 +714,7 @@ jobs:
mypy: mypy:
name: Check mypy name: Check mypy
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
github.event.inputs.pylint-only != 'true' github.event.inputs.pylint-only != 'true'
|| github.event.inputs.mypy-only == 'true' || github.event.inputs.mypy-only == 'true'
@ -775,7 +775,7 @@ jobs:
mypy homeassistant/components/${{ needs.info.outputs.integrations_glob }} mypy homeassistant/components/${{ needs.info.outputs.integrations_glob }}
prepare-pytest-full: prepare-pytest-full:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
(github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core')
&& github.event.inputs.lint-only != 'true' && github.event.inputs.lint-only != 'true'
@ -825,7 +825,7 @@ jobs:
overwrite: true overwrite: true
pytest-full: pytest-full:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
(github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core')
&& github.event.inputs.lint-only != 'true' && github.event.inputs.lint-only != 'true'
@ -936,7 +936,7 @@ jobs:
./script/check_dirty ./script/check_dirty
pytest-mariadb: pytest-mariadb:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
services: services:
mariadb: mariadb:
image: ${{ matrix.mariadb-group }} image: ${{ matrix.mariadb-group }}
@ -1189,7 +1189,7 @@ jobs:
coverage-full: coverage-full:
name: Upload test coverage to Codecov (full suite) name: Upload test coverage to Codecov (full suite)
if: needs.info.outputs.skip_coverage != 'true' if: needs.info.outputs.skip_coverage != 'true'
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- pytest-full - pytest-full
@ -1213,7 +1213,7 @@ jobs:
version: v0.6.0 version: v0.6.0
pytest-partial: pytest-partial:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: | if: |
(github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core')
&& github.event.inputs.lint-only != 'true' && github.event.inputs.lint-only != 'true'
@ -1328,7 +1328,7 @@ jobs:
coverage-partial: coverage-partial:
name: Upload test coverage to Codecov (partial suite) name: Upload test coverage to Codecov (partial suite)
if: needs.info.outputs.skip_coverage != 'true' if: needs.info.outputs.skip_coverage != 'true'
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- info - info
- pytest-partial - pytest-partial