Skip to content

Commit

Permalink
Use pip from constraint file (#135)
Browse files Browse the repository at this point in the history
* Use pip from constraint file

* Fix code style
  • Loading branch information
oncleben31 authored Jan 24, 2021
1 parent 77f62ec commit c3c92a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion {{cookiecutter.project_name}}/.github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit c3c92a1

Please sign in to comment.