Skip to content

Commit

Permalink
Use cache in github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Hritik Vijay <[email protected]>
  • Loading branch information
Hritik14 committed May 19, 2021
1 parent 87ffa81 commit ff48be9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
with:
python-version: 3.8

- name: Restore cache
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt install python3-dev postgresql libpq-dev build-essential libxml2-dev libxslt1-dev
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/upstream_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Restore cache
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
Expand All @@ -49,4 +57,4 @@ jobs:
VC_DB_USER: postgres
POSTGRES_PORT: 5432
DJANGO_DEV: 1
GH_TOKEN: 1
GH_TOKEN: 1

0 comments on commit ff48be9

Please sign in to comment.