Skip to content

Commit

Permalink
Update pip compile step
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
  • Loading branch information
ankatiyar committed Jul 27, 2023
1 parent 66dcd93 commit 67f4bf1
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run pip-compile on Kedro
name: Run pip-compile

on:
workflow_call:
Expand All @@ -14,9 +14,26 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ inputs.python-version }}
- name: Set up Python ${{inputs.python-version}}
uses: actions/setup-python@v3
with:
python-version: ${{ inputs.python-version }}
- name: Pip compile
python-version: ${{inputs.python-version}}
- run: make install-pip-setuptools
- name: Cache python packages for Linux
if: inputs.os == 'ubuntu-latest'
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{inputs.os}}-python-${{inputs.python-version}}
- name: Cache python packages for Windows
if: inputs.os == 'windows-latest'
uses: actions/cache@v3
with:
path: ~\AppData\Local\pip\Cache
key: ${{inputs.os}}-python-${{inputs.python-version}}
- name: Install dependencies
run: |
make install-test-requirements
make install-pre-commit
- name: Run pip-compile
run: make pip-compile

0 comments on commit 67f4bf1

Please sign in to comment.