Use .venv dir for as Python venv and cache (#7485)

* Use .venv as Python venv dir

* Update refs to Python venv dir and use action to cache and setup

* Add missing shell: bash

* Source for Python deps

* Exclude .venv from lint

* Update ChangeLog

* Add cache-key arg for init-python

* Add missing "

* Use workflow specific Python cache names

* Fixed cache key for Linux

* Use bash if to make output clearer in case of skipping.

* Clearer debug output

* Add check for cache key

* Add missing shell

* Add SonarCloud and Valgrind venv cache

* Fixed typo
This commit is contained in:
Nick Bolton
2024-09-06 13:50:59 +01:00
committed by GitHub
parent e7a6cc932e
commit c30fbf9002
15 changed files with 131 additions and 24 deletions

View File

@ -20,10 +20,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python venv
uses: ./.github/actions/init-python
with:
cache-key: "lint-source-code"
- name: Install dependencies
run: |
python3 -m venv build/python
source build/python/bin/activate
source .venv/bin/activate
pip install pyyaml cmake_format clang_format
- name: Linting with CMake formatter