Skip to content

Commit

Permalink
ci: use python cache (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark authored Dec 21, 2023
1 parent cf08f4f commit 0e19c51
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'

- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}

- name: Install dependencies
run: python -m pip install --upgrade pip
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'

- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}

- name: Install dependencies
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-long.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'

- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}

- name: Install dependencies
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}

- name: Install dependencies
run: |
Expand Down

0 comments on commit 0e19c51

Please sign in to comment.