我正在尝试缓存 Github Action 工作流程的依赖项。我使用 Pipenv。
这是我的配置:
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }}
restore-keys: |
${{ runner.os }}-pip-
我从Github 自己的使用 pip 的示例中获得了这个配置。因为我们不requirements.txt
使用. 但即使我得到同样的问题。Pipfile
requirements.txt
requirements.txt
Cache Dependencies步骤总是给出这个问题:
然后在运行测试后:
工作流程没有错误,并且正常完成,但是,它似乎永远无法找到或更新依赖项缓存。