-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
5,420 additions
and
4,368 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ env: | |
CACHE_VERSION: 1 | ||
PIP_CACHE_VERSION: 1 | ||
HA_SHORT_VERSION: 2022.9 | ||
DEFAULT_PYTHON: 3.9 | ||
DEFAULT_PYTHON: 3.9.14 | ||
ALL_PYTHON_VERSIONS: "['3.9.14', '3.10.7']" | ||
PRE_COMMIT_CACHE: ~/.cache/pre-commit | ||
PIP_CACHE: /tmp/pip-cache | ||
SQLALCHEMY_WARN_20: 1 | ||
|
@@ -46,6 +47,7 @@ jobs: | |
pre-commit_cache_key: ${{ steps.generate_pre-commit_cache_key.outputs.key }} | ||
python_cache_key: ${{ steps.generate_python_cache_key.outputs.key }} | ||
requirements: ${{ steps.core.outputs.requirements }} | ||
python_versions: ${{ steps.info.outputs.python_versions }} | ||
test_full_suite: ${{ steps.info.outputs.test_full_suite }} | ||
test_group_count: ${{ steps.info.outputs.test_group_count }} | ||
test_groups: ${{ steps.info.outputs.test_groups }} | ||
|
@@ -143,6 +145,8 @@ jobs: | |
fi | ||
# Output & sent to GitHub Actions | ||
echo "python_versions: ${ALL_PYTHON_VERSIONS}" | ||
echo "::set-output name=python_versions::${ALL_PYTHON_VERSIONS}" | ||
echo "test_full_suite: ${test_full_suite}" | ||
echo "::set-output name=test_full_suite::${test_full_suite}" | ||
echo "integrations_glob: ${integrations_glob}" | ||
|
@@ -463,7 +467,7 @@ jobs: | |
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
python-version: ${{ fromJSON(needs.info.outputs.python_versions) }} | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
@@ -483,18 +487,18 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ matrix.python-version }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Restore pip wheel cache | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ env.PIP_CACHE }} | ||
key: >- | ||
${{ runner.os }}-${{ matrix.python-version }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
steps.generate-pip-key.outputs.key }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python-version }}-pip-${{ env.PIP_CACHE_VERSION }}-${{ env.HA_SHORT_VERSION }}- | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-pip-${{ env.PIP_CACHE_VERSION }}-${{ env.HA_SHORT_VERSION }}- | ||
- name: Install additional OS dependencies | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
run: | | ||
|
@@ -541,7 +545,7 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
@@ -573,7 +577,7 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
@@ -606,7 +610,7 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
@@ -650,7 +654,7 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
@@ -682,7 +686,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
python-version: ${{ fromJson(needs.info.outputs.python_versions) }} | ||
name: Run pip check ${{ matrix.python-version }} | ||
steps: | ||
- name: Check out code from GitHub | ||
|
@@ -698,7 +702,7 @@ jobs: | |
with: | ||
path: venv | ||
key: >- | ||
${{ runner.os }}-${{ matrix.python-version }}-${{ | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
@@ -729,7 +733,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
group: ${{ fromJson(needs.info.outputs.test_groups) }} | ||
python-version: ["3.9", "3.10"] | ||
python-version: ${{ fromJson(needs.info.outputs.python_versions) }} | ||
name: >- | ||
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }}) | ||
steps: | ||
|
@@ -751,7 +755,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: venv | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ | ||
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
needs.info.outputs.python_cache_key }} | ||
- name: Fail job if Python cache restore failed | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.