]> 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)
committerVictor Julien <victor@inliniac.net>
Thu, 14 Jan 2021 09:08:41 +0000 (10:08 +0100)
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 0155c81811f15f5ca08b78c8bb81e51260807024..c06961dbd07f071f5b44a018ff32ce1cfdcb30e2 100644 (file)
@@ -1150,12 +1150,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@v2
       - name: Downloading prep archive
         uses: actions/download-artifact@v2
@@ -1169,7 +1170,7 @@ 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
 
   windows-msys2-mingw64:
     name: Windows MSYS2 MINGW64