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:
8
.github/workflows/lint-source-code.yml
vendored
8
.github/workflows/lint-source-code.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user