]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci/macos: use brew to install Python 3
authorJason Ish <jason.ish@oisf.net>
Fri, 8 Jan 2021 15:39:19 +0000 (09:39 -0600)
committerJeff Lucovsky <jeff@lucovsky.org>
Mon, 15 Feb 2021 13:27:19 +0000 (08:27 -0500)
The default Python on MacOS is Python 2. Suricata-Verify now
depends on Python 3, so install it with Brew.

(cherry picked from commit 7904ef82d0b2478694025ca0d9043f2ae98be73a)

.github/workflows/builds.yml

index aa7fd89e3f36b0e6043b1b1e0deba3404f4c099f..798e123d5b44d6405a43b68996cf3bdf6a67d40b 100644 (file)
@@ -956,12 +956,13 @@ jobs:
           nspr \
           pcre \
           pkg-config \
+          python \
           rust \
           xz
       - name: Install cbindgen
         run: cargo install --force --debug --version 0.14.1 cbindgen
       - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
-      - run: pip install PyYAML
+      - run: pip3 install PyYAML
       - uses: actions/checkout@v1
       - name: Downloading prep archive
         uses: actions/download-artifact@v2
@@ -975,4 +976,4 @@ jobs:
       - run: make check
       - run: tar xf prep/suricata-verify.tar.gz
       - name: Running suricata-verify
-        run: ./suricata-verify/run.py
+        run: python3 ./suricata-verify/run.py