Use internal caching for dependencies

This commit is contained in:
Alex Root Junior 2023-01-08 22:57:22 +02:00
parent d2ac20bd6a
commit 12b4532751
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -58,7 +58,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v4
@ -67,15 +67,7 @@ jobs:
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Load cached venv
id: cached-pip-dependencies
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ secrets.CACHE_VERSION }}
- name: Install project dependencies
if: steps.cached-pip-dependencies.outputs.cache-hit != 'true'
run: |
pip install -e .[dev,test,redis,proxy,i18n,fast]