From 4e1328e98aa95f3013e040f483555ebcfc54800b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 7 Feb 2025 17:00:51 +0000 Subject: [PATCH] Update CI workflow to use ubuntu-24.04-arm for all jobs --- .github/workflows/ci.yaml | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2a9f1571830..76b4d7c7561 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,7 +90,7 @@ jobs: tests_glob: ${{ steps.info.outputs.tests_glob }} tests: ${{ steps.info.outputs.tests }} skip_coverage: ${{ steps.info.outputs.skip_coverage }} - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm steps: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 @@ -222,7 +222,7 @@ jobs: pre-commit: name: Prepare pre-commit base - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | github.event.inputs.pylint-only != 'true' && github.event.inputs.mypy-only != 'true' @@ -271,7 +271,7 @@ jobs: lint-ruff-format: name: Check ruff-format - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - pre-commit @@ -311,7 +311,7 @@ jobs: lint-ruff: name: Check ruff - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - pre-commit @@ -351,7 +351,7 @@ jobs: lint-other: name: Check other linters - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - pre-commit @@ -431,7 +431,7 @@ jobs: lint-hadolint: name: Check ${{ matrix.file }} - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info if: | @@ -458,7 +458,7 @@ jobs: base: name: Prepare dependencies - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: info timeout-minutes: 60 strategy: @@ -553,7 +553,7 @@ jobs: hassfest: name: Check hassfest - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | github.event.inputs.pylint-only != 'true' && github.event.inputs.mypy-only != 'true' @@ -592,7 +592,7 @@ jobs: gen-requirements-all: name: Check all requirements - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | github.event.inputs.pylint-only != 'true' && github.event.inputs.mypy-only != 'true' @@ -625,7 +625,7 @@ jobs: audit-licenses: name: Audit licenses - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - base @@ -672,7 +672,7 @@ jobs: pylint: name: Check pylint - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm timeout-minutes: 20 if: | github.event.inputs.mypy-only != 'true' @@ -718,7 +718,7 @@ jobs: pylint-tests: name: Check pylint on tests - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm timeout-minutes: 20 if: | (github.event.inputs.mypy-only != 'true' @@ -765,7 +765,7 @@ jobs: mypy: name: Check mypy - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | github.event.inputs.pylint-only != 'true' && github.event.inputs.audit-licenses-only != 'true' @@ -827,7 +827,7 @@ jobs: mypy homeassistant/components/${{ needs.info.outputs.integrations_glob }} prepare-pytest-full: - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') && github.event.inputs.lint-only != 'true' @@ -884,7 +884,7 @@ jobs: overwrite: true pytest-full: - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') && github.event.inputs.lint-only != 'true' @@ -999,7 +999,7 @@ jobs: ./script/check_dirty pytest-mariadb: - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm services: mariadb: image: ${{ matrix.mariadb-group }} @@ -1127,7 +1127,7 @@ jobs: ./script/check_dirty pytest-postgres: - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm services: postgres: image: ${{ matrix.postgresql-group }} @@ -1260,7 +1260,7 @@ jobs: coverage-full: name: Upload test coverage to Codecov (full suite) if: needs.info.outputs.skip_coverage != 'true' - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - pytest-full @@ -1283,7 +1283,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} pytest-partial: - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm if: | (github.event_name != 'push' || github.event.repository.full_name == 'home-assistant/core') && github.event.inputs.lint-only != 'true' @@ -1401,7 +1401,7 @@ jobs: coverage-partial: name: Upload test coverage to Codecov (partial suite) if: needs.info.outputs.skip_coverage != 'true' - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-arm needs: - info - pytest-partial