Skip to content

Commit

Permalink
Implementing PR caching changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Jan 9, 2025
1 parent b37e42f commit 5586301
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 172 deletions.
11 changes: 6 additions & 5 deletions .github/actions/python_prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
python-version: 3.10.14

- name: Cache Poetry installation
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-${{ runner.os }}
Expand All @@ -19,13 +19,14 @@ runs:
shell: bash
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Cache Poetry dependencies
uses: actions/cache@v3
- name: cache_poetry_dependencies
uses: actions/cache@v4
with:
path: .venv
path: ~/.cache/pypoetry/virtualenvs
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Python dependencies
if: steps.cache_poetry_dependencies.outputs.cache-hit != 'true'
shell: bash
run: poetry install

Expand All @@ -36,7 +37,7 @@ runs:
node-version: '20'

- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
python_web3_wallet/frontend/node_modules
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
CI: false # needed otherwise dependencies warnings stop the job
run: yarn --cwd python_web3_wallet/frontend build
- name: Cache frontend build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: python_web3_wallet/frontend/build
key: frontend-build-${{ github.sha }}
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Restore frontend build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: python_web3_wallet/frontend/build
key: frontend-build-${{ github.sha }}
Expand Down
165 changes: 0 additions & 165 deletions LICENSE

This file was deleted.

0 comments on commit 5586301

Please sign in to comment.