Skip to content

chore(deps): update github/codeql-action action to v4.38.2 #614

chore(deps): update github/codeql-action action to v4.38.2

chore(deps): update github/codeql-action action to v4.38.2 #614

Workflow file for this run

name: Test
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
permissions: {}
# IMPORTANT: Keep HA_VERSION synchronized across all workflow files:
# - copilot-setup-steps.yml
# - lint.yml
# - test.yml
jobs:
pytest:
name: "pytest"
runs-on: "ubuntu-latest"
steps:
- name: Checkout the 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@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: "0.12.18"
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 requirements
run: script/setup/bootstrap
- name: Run tests
run: script/test