From d3b05fb2dcfcbb64dc877fb2a9be14035c5446ce Mon Sep 17 00:00:00 2001 From: LeeeeT Date: Wed, 14 Dec 2022 22:32:23 +0300 Subject: [PATCH] ci: add os to key (#70) --- .github/workflows/ci.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a7eeda6..9179677 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: path: | ~/.cache .venv - key: ${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install Poetry if: steps.cache.outputs.cache-hit != 'true' uses: snok/install-poetry@v1.3.3 @@ -59,7 +59,7 @@ jobs: # path: | # ~/.cache # .venv -# key: ${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} +# key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} # - name: Restore mypy cache # uses: actions/cache@v3 # with: @@ -97,7 +97,7 @@ jobs: path: | ~/.cache .venv - key: ${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install Poetry if: steps.cache.outputs.cache-hit != 'true' uses: snok/install-poetry@v1.3.3 @@ -130,7 +130,7 @@ jobs: path: | ~/.cache .venv - key: ${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install Poetry if: steps.cache.outputs.cache-hit != 'true' uses: snok/install-poetry@v1.3.3 @@ -172,7 +172,7 @@ jobs: uses: actions/cache@v3 with: path: .pytest_cache - key: ${{ runner.os }}-${{ matrix.python-version }} + key: pytest-${{ runner.os }}-${{ matrix.python-version }} - name: Install Poetry if: steps.cache.outputs.cache-hit != 'true' uses: snok/install-poetry@v1.3.3