Bump docker/build-push-action from 6.7.0 to 6.8.0 (#4102) #3739
This file contains 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
name: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
legacy: | |
name: With pytest with Home Assistant (min. supported version) | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/checkout@v4.1.7 | |
- name: 🛠️ Set up Python 3.12 | |
uses: actions/setup-python@v5.2.0 | |
with: | |
python-version: "3.12" | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements_core_min.txt | |
requirements_base.txt | |
requirements_test.txt | |
- name: 📦 Install dependencies | |
run: | | |
scripts/install/pip_packages \ | |
--requirement requirements_core_min.txt \ | |
--requirement requirements_test.txt | |
scripts/install/frontend | |
- name: ⏲️ Set time zone | |
uses: szenius/set-timezone@v2.0 | |
with: | |
timezoneLinux: 'Asia/Singapore' | |
- name: 🏃 Run tests | |
env: | |
PYTEST: true | |
run: scripts/test | |
dev: | |
name: With pytest with Home Assistant (${{ matrix.homeassistant-version }}) & Python (${{ matrix.python-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
homeassistant-version: | |
- "dev" | |
python-version: | |
- "3.12" | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/checkout@v4.1.7 | |
- name: 🛠️ Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5.2.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements_core_min.txt | |
requirements_base.txt | |
requirements_test.txt | |
- name: 📦 Install dependencies | |
run: | | |
scripts/install/pip_packages --requirement requirements_test.txt | |
scripts/install/core_dev | |
scripts/install/frontend | |
- name: ⏲️ Set time zone | |
uses: szenius/set-timezone@v2.0 | |
with: | |
timezoneLinux: 'Asia/Singapore' | |
- name: 🏃 Run tests | |
env: | |
PYTEST: true | |
run: scripts/test | |
- name: 📤 Upload coverage to Codecov | |
if: ${{ matrix.python-version == '3.12' }} | |
run: | | |
scripts/coverage | |
curl -sfSL https://codecov.io/bash | bash - |