]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
💚 Update CI cache to fix installs when dependencies change (#9659)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 11 Jun 2023 22:08:56 +0000 (00:08 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 22:08:56 +0000 (22:08 +0000)
.github/workflows/build-docs.yml
.github/workflows/test.yml

index 41eb55b859f3409da83e23784c8ebe91b8d551ff..a0e83e5c864034f6c478c7f94f67767cac924919 100644 (file)
@@ -22,7 +22,7 @@ jobs:
         id: cache
         with:
           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
         if: steps.cache.outputs.cache-hit != 'true'
         run: pip install -r requirements-docs.txt
index e3abe4b2158fac735de22415082dd017e1905f7e..b17d2e9d54f38bd55243be5e1df56a19cfd9d7d2 100644 (file)
@@ -23,12 +23,12 @@ jobs:
           python-version: ${{ matrix.python-version }}
           # Issue ref: https://github.com/actions/setup-python/issues/436
           # cache: "pip"
-          cache-dependency-path: pyproject.toml
+          cache-dependency-path: pyproject.toml
       - uses: actions/cache@v3
         id: cache
         with:
           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
         if: steps.cache.outputs.cache-hit != 'true'
         run: pip install -r requirements-tests.txt
@@ -57,7 +57,7 @@ jobs:
           python-version: '3.8'
           # Issue ref: https://github.com/actions/setup-python/issues/436
           # cache: "pip"
-          cache-dependency-path: pyproject.toml
+          cache-dependency-path: pyproject.toml
 
       - name: Get coverage files
         uses: actions/download-artifact@v3