Skip to content

chore(deps): bump actions/cache from 4.1.2 to 4.2.0 (#443) #1209

chore(deps): bump actions/cache from 4.1.2 to 4.2.0 (#443)

chore(deps): bump actions/cache from 4.1.2 to 4.2.0 (#443) #1209

Workflow file for this run

name: "Validations"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.8.3"
jobs:
# note: changing the job name requires a quality gate reference change in .github/workflows/release.yaml
validations:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install poetry
uses: abatilo/actions-poetry@fd0e6716a0de25ef6ade151b8b53190b0376acfd # v2.3.0
with:
poetry-version: ${{ env.POETRY_VERSION }}
- name: Cache Poetry virtualenv
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
id: cache
with:
path: ~/.virtualenvs
key: python-${{ env.PYTHON_VERSION }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
python-${{ env.PYTHON_VERSION }}-poetry-${{ env.POETRY_VERSION }}
- name: Setup Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Install dependencies and package
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Run static analysis
run: poetry run make static-analysis
- name: Run unit tests
run: poetry run make unit
- name: Build test
run: poetry run make build
- name: Run CLI tests
run: make cli