]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
github-ci: add Ubuntu 20.04
authorJason Ish <jason.ish@oisf.net>
Tue, 13 Apr 2021 19:34:12 +0000 (13:34 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 13 Apr 2021 19:34:12 +0000 (13:34 -0600)
.github/workflows/tests.yml

index 98c1f89dc4845054425755ea68cf38d944c44ade..211fee6e2b359d55ffe75fa9a94baebceb24e10d 100644 (file)
@@ -88,6 +88,30 @@ jobs:
       - name: Python 3 integration tests
         run: PYTHONPATH=. python3 ./tests/integration_tests.py
 
+  ubuntu-2004:
+    name: Ubuntu 20.04
+    runs-on: ubuntu-latest
+    container: ubuntu:20.04
+    steps:
+      - run: apt update
+      - run: |
+          apt -y install \
+            python-pytest \
+            python-yaml \
+            python3-pytest \
+            python3-yaml
+      - uses: actions/checkout@v1
+
+      - name: Python 2 unit tests
+        run: PYTHONPATH=. pytest
+      - name: Python 2 integration tests
+        run: PYTHONPATH=. python2 ./tests/integration_tests.py
+
+      - name: Python 3 unit tests
+        run: PYTHONPATH=. pytest-3
+      - name: Python 3 integration tests
+        run: PYTHONPATH=. python3 ./tests/integration_tests.py
+
   ubuntu-1804:
     name: Ubuntu 18.04
     runs-on: ubuntu-latest