Skip to content

Commit b5585a8

Browse files
committed
Add pip cache
1 parent d61042f commit b5585a8

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.11"
16-
17-
- uses: actions/cache@v3
18-
with:
19-
path: ${{ env.pythonLocation }}
20-
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
15+
cache: pip
16+
python-version: "3.12"
2117

2218
- name: Install dependencies
2319
run: pip install .[doc]

.github/workflows/test-suite.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-python@v4
2121
with:
22+
cache: pip
2223
python-version: ${{ matrix.python-version }}
2324

24-
- uses: actions/cache@v3
25-
with:
26-
path: ${{ env.pythonLocation }}
27-
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
28-
2925
- name: Install dependencies
3026
run: pip install -e .[test]
3127

0 commit comments

Comments
 (0)