mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Update CI workflow to use ubuntu-24.04-arm for all jobs
This commit is contained in:
parent
6ff733b225
commit
4e1328e98a
40
.github/workflows/ci.yaml
vendored
40
.github/workflows/ci.yaml
vendored
@ -90,7 +90,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-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
@ -222,7 +222,7 @@ jobs:
|
|||||||
|
|
||||||
pre-commit:
|
pre-commit:
|
||||||
name: Prepare pre-commit base
|
name: Prepare pre-commit base
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -271,7 +271,7 @@ jobs:
|
|||||||
|
|
||||||
lint-ruff-format:
|
lint-ruff-format:
|
||||||
name: Check ruff-format
|
name: Check ruff-format
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- pre-commit
|
- pre-commit
|
||||||
@ -311,7 +311,7 @@ jobs:
|
|||||||
|
|
||||||
lint-ruff:
|
lint-ruff:
|
||||||
name: Check ruff
|
name: Check ruff
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- pre-commit
|
- pre-commit
|
||||||
@ -351,7 +351,7 @@ jobs:
|
|||||||
|
|
||||||
lint-other:
|
lint-other:
|
||||||
name: Check other linters
|
name: Check other linters
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- pre-commit
|
- pre-commit
|
||||||
@ -431,7 +431,7 @@ jobs:
|
|||||||
|
|
||||||
lint-hadolint:
|
lint-hadolint:
|
||||||
name: Check ${{ matrix.file }}
|
name: Check ${{ matrix.file }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
if: |
|
if: |
|
||||||
@ -458,7 +458,7 @@ jobs:
|
|||||||
|
|
||||||
base:
|
base:
|
||||||
name: Prepare dependencies
|
name: Prepare dependencies
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs: info
|
needs: info
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
@ -553,7 +553,7 @@ jobs:
|
|||||||
|
|
||||||
hassfest:
|
hassfest:
|
||||||
name: Check hassfest
|
name: Check hassfest
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -592,7 +592,7 @@ jobs:
|
|||||||
|
|
||||||
gen-requirements-all:
|
gen-requirements-all:
|
||||||
name: Check all requirements
|
name: Check all requirements
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -625,7 +625,7 @@ jobs:
|
|||||||
|
|
||||||
audit-licenses:
|
audit-licenses:
|
||||||
name: Audit licenses
|
name: Audit licenses
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- base
|
- base
|
||||||
@ -672,7 +672,7 @@ jobs:
|
|||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
name: Check pylint
|
name: Check pylint
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
if: |
|
if: |
|
||||||
github.event.inputs.mypy-only != 'true'
|
github.event.inputs.mypy-only != 'true'
|
||||||
@ -718,7 +718,7 @@ jobs:
|
|||||||
|
|
||||||
pylint-tests:
|
pylint-tests:
|
||||||
name: Check pylint on tests
|
name: Check pylint on tests
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
if: |
|
if: |
|
||||||
(github.event.inputs.mypy-only != 'true'
|
(github.event.inputs.mypy-only != 'true'
|
||||||
@ -765,7 +765,7 @@ jobs:
|
|||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
name: Check mypy
|
name: Check mypy
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
if: |
|
if: |
|
||||||
github.event.inputs.pylint-only != 'true'
|
github.event.inputs.pylint-only != 'true'
|
||||||
&& github.event.inputs.audit-licenses-only != 'true'
|
&& github.event.inputs.audit-licenses-only != 'true'
|
||||||
@ -827,7 +827,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-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -884,7 +884,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
pytest-full:
|
pytest-full:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -999,7 +999,7 @@ jobs:
|
|||||||
./script/check_dirty
|
./script/check_dirty
|
||||||
|
|
||||||
pytest-mariadb:
|
pytest-mariadb:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: ${{ matrix.mariadb-group }}
|
image: ${{ matrix.mariadb-group }}
|
||||||
@ -1127,7 +1127,7 @@ jobs:
|
|||||||
./script/check_dirty
|
./script/check_dirty
|
||||||
|
|
||||||
pytest-postgres:
|
pytest-postgres:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: ${{ matrix.postgresql-group }}
|
image: ${{ matrix.postgresql-group }}
|
||||||
@ -1260,7 +1260,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-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- pytest-full
|
- pytest-full
|
||||||
@ -1283,7 +1283,7 @@ jobs:
|
|||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
pytest-partial:
|
pytest-partial:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
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'
|
||||||
@ -1401,7 +1401,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-24.04
|
runs-on: ubuntu-24.04-arm
|
||||||
needs:
|
needs:
|
||||||
- info
|
- info
|
||||||
- pytest-partial
|
- pytest-partial
|
||||||
|
Loading…
x
Reference in New Issue
Block a user