Skip to content

Commit

Permalink
Use a virtualenv to run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 9, 2024
1 parent 504cee2 commit 633ed2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
echo "::endgroup::"
echo "::group::Run pre-commit"
cd $STARTDIR
export PYTHONPATH=$(python -m site --user-site):$PYTHONPATH
export PATH=/root/.local/bin:$PATH
pip install argparse --user
python3 -m venv /root/pre-commit-venv
source /root/pre-commit-venv/bin/activate
pip install pre-commit
cmake -DENABLE_SIO=ON \
-DCMAKE_CXX_STANDARD=20 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror "\
Expand Down

0 comments on commit 633ed2e

Please sign in to comment.