mirror of https://github.com/tiangolo/fastapi.git
💚 Update CI cache to fix installs when dependencies change (#9659)
This commit is contained in:
parent
32cefb9bff
commit
f5844e76b5
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ${{ env.pythonLocation }}
|
path: ${{ env.pythonLocation }}
|
||||||
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-v03
|
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v03
|
||||||
- name: Install docs extras
|
- name: Install docs extras
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: pip install -r requirements-docs.txt
|
run: pip install -r requirements-docs.txt
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,12 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
# Issue ref: https://github.com/actions/setup-python/issues/436
|
# Issue ref: https://github.com/actions/setup-python/issues/436
|
||||||
# cache: "pip"
|
# cache: "pip"
|
||||||
cache-dependency-path: pyproject.toml
|
# cache-dependency-path: pyproject.toml
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ${{ env.pythonLocation }}
|
path: ${{ env.pythonLocation }}
|
||||||
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
|
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-test-v03
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: pip install -r requirements-tests.txt
|
run: pip install -r requirements-tests.txt
|
||||||
|
|
@ -57,7 +57,7 @@ jobs:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
# Issue ref: https://github.com/actions/setup-python/issues/436
|
# Issue ref: https://github.com/actions/setup-python/issues/436
|
||||||
# cache: "pip"
|
# cache: "pip"
|
||||||
cache-dependency-path: pyproject.toml
|
# cache-dependency-path: pyproject.toml
|
||||||
|
|
||||||
- name: Get coverage files
|
- name: Get coverage files
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue