Skip to content

Commit

Permalink
Update cache pip
Browse files Browse the repository at this point in the history
  • Loading branch information
vectornguyen76 committed Jan 2, 2024
1 parent 84c08ca commit eec70c1
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/development_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,30 @@ on:
branches:
- develop

push:
branches:
- develop

jobs:
build-push-image-search:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('./image-search-engine/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-image-search
# - name: Cache Python dependencies
# uses: actions/cache@v2
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-${{ hashFiles('./image-search-engine/requirements.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-image-search

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: "pip"

- name: Install Dependencies
run: pip install -r ./image-search-engine/requirements.txt
Expand Down Expand Up @@ -64,18 +69,19 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('./text-search-engine/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-text-search
# - name: Cache Python dependencies
# uses: actions/cache@v2
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-${{ hashFiles('./text-search-engine/requirements.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-text-search

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: "pip"

- name: Install Dependencies
run: pip install -r ./text-search-engine/requirements.txt
Expand Down

0 comments on commit eec70c1

Please sign in to comment.