diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d93c5e1..7a2182b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,6 +77,7 @@ jobs: ${{ steps.cache_key.outputs.result }}- - name: Install Python modules run: | + pip install --constraint=.github/workflows/constraints.txt pip pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 reorder-python-imports pip install -r requirements_test.txt working-directory: cookiecutter-homeassistant-custom-component-instance diff --git a/{{cookiecutter.project_name}}/.github/workflows/tests.yaml b/{{cookiecutter.project_name}}/.github/workflows/tests.yaml index 6304256..578dd49 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/tests.yaml +++ b/{{cookiecutter.project_name}}/.github/workflows/tests.yaml @@ -74,7 +74,9 @@ jobs: with: python-version: {{ "${{ env.DEFAULT_PYTHON }}" }} - name: Install requirements - run: python3 -m pip install -r requirements_test.txt + run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip install -r requirements_test.txt - name: Tests suite run: | pytest \