mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
CI: Print python version (#63968)
This commit is contained in:
parent
1a46a6687e
commit
2178130fba
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@ -188,6 +188,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
pip install --cache-dir=$PIP_CACHE -U "pip<20.3" setuptools wheel
|
pip install --cache-dir=$PIP_CACHE -U "pip<20.3" setuptools wheel
|
||||||
pip install --cache-dir=$PIP_CACHE -r requirements.txt -r requirements_test.txt
|
pip install --cache-dir=$PIP_CACHE -r requirements.txt -r requirements_test.txt
|
||||||
- name: Generate partial pre-commit restore key
|
- name: Generate partial pre-commit restore key
|
||||||
@ -579,6 +580,7 @@ jobs:
|
|||||||
|
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
pip install --cache-dir=$PIP_CACHE -U "pip<20.3" setuptools wheel
|
pip install --cache-dir=$PIP_CACHE -U "pip<20.3" setuptools wheel
|
||||||
pip install --cache-dir=$PIP_CACHE -r requirements_all.txt
|
pip install --cache-dir=$PIP_CACHE -r requirements_all.txt
|
||||||
pip install --cache-dir=$PIP_CACHE -r requirements_test.txt
|
pip install --cache-dir=$PIP_CACHE -r requirements_test.txt
|
||||||
@ -617,12 +619,14 @@ jobs:
|
|||||||
if: needs.changes.outputs.test_full_suite == 'true'
|
if: needs.changes.outputs.test_full_suite == 'true'
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
pylint homeassistant
|
pylint homeassistant
|
||||||
- name: Run pylint (partially)
|
- name: Run pylint (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
pylint homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
pylint homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
@ -657,12 +661,14 @@ jobs:
|
|||||||
if: needs.changes.outputs.test_full_suite == 'true'
|
if: needs.changes.outputs.test_full_suite == 'true'
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
mypy homeassistant
|
mypy homeassistant
|
||||||
- name: Run mypy (partially)
|
- name: Run mypy (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false'
|
if: needs.changes.outputs.test_full_suite == 'false'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
mypy homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
mypy homeassistant/components/${{ needs.changes.outputs.integrations_glob }}
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
@ -718,6 +724,7 @@ jobs:
|
|||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
python3 -X dev -m pytest \
|
python3 -X dev -m pytest \
|
||||||
-qq \
|
-qq \
|
||||||
--timeout=9 \
|
--timeout=9 \
|
||||||
@ -737,6 +744,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
|
|
||||||
if [[ ! -f "tests/components/${{ matrix.group }}/__init__.py" ]]; then
|
if [[ ! -f "tests/components/${{ matrix.group }}/__init__.py" ]]; then
|
||||||
echo "::error:: missing file tests/components/${{ matrix.group }}/__init__.py"
|
echo "::error:: missing file tests/components/${{ matrix.group }}/__init__.py"
|
||||||
@ -761,6 +769,7 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
python --version
|
||||||
python3 -X dev -m pytest \
|
python3 -X dev -m pytest \
|
||||||
-qq \
|
-qq \
|
||||||
--timeout=9 \
|
--timeout=9 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user