diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22bd5034..8ec94479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: "recursive" @@ -20,9 +20,10 @@ jobs: run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.9" + cache: "poetry" - name: Install and set up Poetry run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6108d6bf..f1da7266 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: "poetry" - name: Get full python version id: full-python-version @@ -48,7 +49,7 @@ jobs: - name: Install Poetry shell: bash - run: curl -fsSL https://install.python-poetry.org | python - -y + run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.4.0 - name: Update PATH if: ${{ matrix.os != 'Windows' }} @@ -64,18 +65,6 @@ jobs: run: | poetry config virtualenvs.in-project true - - name: Set up cache - uses: actions/cache@v3 - id: cache - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} - - - name: Ensure cache is healthy - if: steps.cache.outputs.cache-hit == 'true' - shell: bash - run: timeout 10s poetry run pip --version || rm -rf .venv - - name: Install dependencies shell: bash run: |