From: Jason Ish Date: Tue, 13 Apr 2021 19:34:12 +0000 (-0600) Subject: github-ci: add Ubuntu 20.04 X-Git-Tag: 1.3.0rc1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1992856e9c77a50475355707d1b17ba5807caa9;p=thirdparty%2Fsuricata-update.git github-ci: add Ubuntu 20.04 --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98c1f89..211fee6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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