chore(deps): update astral-sh/setup-uv action to v10.1.0 (#170) #459
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copilot Coding Agent Setup | |
| # | |
| # This workflow configures the environment for GitHub Copilot coding agent. | |
| # It runs automatically before Copilot starts working on any task. | |
| # | |
| # Documentation: | |
| # - https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment | |
| # - https://github.blog/changelog/2025-07-30-copilot-coding-agent-custom-setup-steps-are-more-reliable-and-easier-to-debug/ | |
| name: "Copilot Setup Steps" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| permissions: | |
| contents: read | |
| # IMPORTANT: Keep HA_VERSION synchronized across all workflow files: | |
| # - copilot-setup-steps.yml | |
| # - lint.yml | |
| # - test.yml | |
| jobs: | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 | |
| with: | |
| version: "0.12.13" | |
| enable-cache: true | |
| cache-dependency-glob: "**/requirements*.txt" | |
| - name: Get Home Assistant version | |
| id: ha_version | |
| run: | | |
| HA_VERSION=$(grep '"homeassistant"' hacs.json | head -1 | sed 's/.*"homeassistant"\s*:\s*"\([^"]*\)".*/\1/') | |
| echo "HA_VERSION=${HA_VERSION}" >> $GITHUB_OUTPUT | |
| echo "Home Assistant version: ${HA_VERSION}" | |
| - name: Cache Home Assistant installation | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| .local/ha-venv | |
| key: ha-venv-${{ runner.os }}-py3.14-ha${{ steps.ha_version.outputs.HA_VERSION }}-${{ hashFiles('**/requirements*.txt') }} | |
| restore-keys: | | |
| ha-venv-${{ runner.os }}-py3.14-ha${{ steps.ha_version.outputs.HA_VERSION }}- | |
| ha-venv-${{ runner.os }}-py3.14- | |
| - name: Install dependencies | |
| run: script/setup/bootstrap |