diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a1be74e..8954dd4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,12 +26,16 @@ jobs: - name: Install hyperscan run: sudo apt-get install libhyperscan-dev + - name: Get full Python version + id: full-python-version + run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT + - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock')}} + key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 - name: Install dependencies run: poetry install @@ -72,12 +76,16 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true + - name: Get full Python version + id: full-python-version + run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT + - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock')}} + key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 - name: Install dependencies run: poetry install diff --git a/.github/workflows/pdoc.yml b/.github/workflows/pdoc.yml index 54097b2..af28f60 100644 --- a/.github/workflows/pdoc.yml +++ b/.github/workflows/pdoc.yml @@ -23,12 +23,16 @@ jobs: - name: Install hyperscan run: sudo apt-get install libhyperscan-dev + - name: Get full Python version + id: full-python-version + run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT + - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-v2021-09-23 + key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 - name: Install dependencies run: poetry install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 586837c..3f9638a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,12 +32,16 @@ jobs: - name: Install hyperscan run: sudo apt-get install libhyperscan-dev + - name: Get full Python version + id: full-python-version + run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT + - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 - name: Install dependencies run: poetry install