8000 💚 Update CI cache to fix installs when dependencies change (#9659) · fastapi/fastapi@f5844e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5844e7

Browse files
authored
💚 Update CI cache to fix installs when dependencies change (#9659)
1 parent 32cefb9 commit f5844e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
id: cache
2323
with:
2424
path: ${{ env.pythonLocation }}
25-
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-v03
25+
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v03
2626
- name: Install docs extras
2727
if: steps.cache.outputs.cache-hit != 'true'
2828
run: pip install -r requirements-docs.txt

‎.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424
# Issue ref: https://github.com/actions/setup-python/issues/436
2525
# cache: "pip"
26-
cache-dependency-path: pyproject.toml
26+
# cache-dependency-path: pyproject.toml
2727
- uses: actions/cache@v3
2828
id: cache
2929
with:
3030
path: ${{ env.pythonLocation }}
31-
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
31+
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-test-v03
3232
- name: Install Dependencies
3333
if: steps.cache.outputs.cache-hit != 'true'
3434
run: pip install -r requirements-tests.txt
@@ -57,7 +57,7 @@ jobs:
5757
python-version: '3.8'
5858
# Issue ref: https://github.com/actions/setup-python/issues/436
5959
# cache: "pip"
60-
cache-dependency-path: pyproject.toml
60+
# cache-dependency-path: pyproject.toml
6161

6262
- name: Get coverage files
6363
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)
0