[英]Download dependencies using serverless-python-requirements plugin on GitHub Actions throws "cannot find Python 3.7"
[英]Cannot cache dependencies on Github Actions using Pipenv
我正在嘗試緩存 Github 操作工作流的依賴項。 我使用 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步驟總是給出這個問題:
然后在運行測試后:
工作流程沒有錯誤,並且正常完成,但是,它似乎永遠無法找到或更新依賴項緩存。
pipenv 需要在緩存步驟之前安裝...
- name: Install pipenv, libpq, and pandoc
run: |
sudo apt-get install libpq-dev -y
pip install pipenv
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.