fix: cache update for github actions

main
Morty Space 3 years ago
parent 0ad02fb23e
commit 2733a0c00e
  1. 14
      .github/workflows/test_release.yml

@ -22,16 +22,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download code - name: Download code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
fetch-depth: 0 fetch-depth: 0
- name: Setup Python ${{ matrix.python-version }} - name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Download cache for pip - name: Download cache for pip
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: py-${{ matrix.python-version }}-poetry-pip-1.2.2 key: py-${{ matrix.python-version }}-poetry-pip-1.2.2
@ -40,7 +40,7 @@ jobs:
run: pip install poetry==1.2.2 run: pip install poetry==1.2.2
- name: Download cache for poetry - name: Download cache for poetry
id: poetry-install id: poetry-install
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ./.venv/ path: ./.venv/
key: py-${{ matrix.python-version }}-poetry-install-${{ hashFiles('poetry.lock') }} key: py-${{ matrix.python-version }}-poetry-install-${{ hashFiles('poetry.lock') }}
@ -51,7 +51,7 @@ jobs:
- name: Download cache for pre-commit - name: Download cache for pre-commit
if: matrix.python-version == '3.10.7' if: matrix.python-version == '3.10.7'
id: pre-commit-install id: pre-commit-install
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.cache/pre-commit path: ~/.cache/pre-commit
key: py-${{ matrix.python-version }}-pre-commit-install-${{ hashFiles('.pre-commit-config.yaml') }} key: py-${{ matrix.python-version }}-pre-commit-install-${{ hashFiles('.pre-commit-config.yaml') }}
@ -91,11 +91,11 @@ jobs:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
steps: steps:
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: '3.10.7' python-version: '3.10.7'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Release - name: Release

Loading…
Cancel
Save