8000 šŸ› Re-enable CI cache again Ā· fastapi/fastapi@2c3b98c Ā· GitHub
[go: up one dir, main page]

Skip to content

Commit 2c3b98c

Browse files
committed
šŸ› Re-enable CI cache again
1 parent 6e8bf4d commit 2c3b98c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ā€Ž.github/workflows/test.ymlā€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
22-
id: setup-python
2322
with:
2423
python-version: ${{ matrix.python-version }}
2524
cache: "pip"
2625
cache-dependency-path: pyproject.toml
26+
- uses: actions/cache@v3
27+
id: cache
28+
with:
29+
path: ${{ env.pythonLocation }}
30+
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v02
2731
- name: Install Dependencies
28-
if: steps.setup-python.outputs.cache-hit != 'true'
32+
if: steps.cache.outputs.cache-hit != 'true'
2933
run: pip install -e .[all,dev,doc,test]
3034
# Allow debugging with tmate
3135
- name: Setup tmate session

0 commit comments

Comments
Ā (0)
0