Skip to content

Commit

Permalink
Define test dependencies separately
Browse files Browse the repository at this point in the history
Previously, the test dependencies were installed every time the action was ran, even though they are not used by the action.
  • Loading branch information
per1234 committed Sep 1, 2020
1 parent 1cb1fa2 commit 3eea087
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/libraries_compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --requirement "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/requirements.txt"
pip install --requirement "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests/requirements.txt"
- name: Lint with flake8
run: |
Expand Down
2 changes: 0 additions & 2 deletions compilesketches/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
GitPython==3.1.2
PyGithub==1.51
pytest==5.4.2
pytest-mock==3.1.0
PyYAML==5.3.1
3 changes: 3 additions & 0 deletions compilesketches/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--requirement ../requirements.txt
pytest==5.4.2
pytest-mock==3.1.0

0 comments on commit 3eea087

Please sign in to comment.