From 976fb58225d4cdee3a7742a1ee2f3b92a41e538b Mon Sep 17 00:00:00 2001 From: egecetin Date: Sat, 5 Oct 2024 15:44:39 +0300 Subject: [PATCH] update alpine version + enable venv --- .github/workflows/build_and_test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 67237ed9c4..6bf9b8677d 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -22,7 +22,7 @@ concurrency: jobs: pre-commit: runs-on: ubuntu-latest - container: seladb/alpine317 + container: seladb/alpine320 steps: - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -34,10 +34,14 @@ jobs: - name: Install dependencies run: | apk update && apk add cppcheck python3-dev - python3 -m pip install clang-format==18.1.6 clang-tidy==18.1.8 + python3 -m venv ./venv + . ./venv/bin/activate + python3 -m pip install clang-format==18.1.6 clang-tidy==18.1.8 pre-commit==3.8.0 - # TODO: investigate how to run pre-commit with `venv` - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 + - name: Run pre-commit + run: | + . ./venv/bin/activate + pre-commit run --all-files - name: Configure PcapPlusPlus for Static analysis run: cmake -S . -B "$BUILD_DIR"