Skip to content

Commit

Permalink
try activate venv for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jul 18, 2024
1 parent a5f2dac commit 7b18e8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ jobs:
apk update && apk add cppcheck python3-dev
python3 -m pip install cmake-format clang-format==18.1.6
# TODO: investigate how to run pre-commit with `venv`
- name: Activate virtualenv
run: |
python3 -m venv ./venv
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

- name: CMake format
Expand Down

0 comments on commit 7b18e8b

Please sign in to comment.