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

Loading…
Cancel
Save