From bbc75ff0ca5dfef71433596a4d4ef8d717c6cf41 Mon Sep 17 00:00:00 2001 From: Dominik Pataky Date: Mon, 30 Jan 2023 13:56:48 +0100 Subject: [PATCH] Update Github test workflow with matrix --- .github/workflows/run_tests.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index b5856c3..6db0c43 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -4,21 +4,26 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] workflow_dispatch: jobs: - test: + test-netflow: runs-on: ubuntu-20.04 + strategy: + matrix: + python: + - "3.5.3" # Debian Stretch + - "3.7.3" # Debian Buster + - "3.9.3" # Debian Bullseye + - "3.11.1" # Debian Bookworm steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up Python 3.5.3 - uses: gabrielfalcao/pyenv-action@v7 + - name: Set up Python with pyenv + uses: gabrielfalcao/pyenv-action@v11 with: - default: '3.5.3' # Debian Stretch (oldoldstable) + default: "${{ matrix.python }}" - name: Run Python unittests run: python3 -m unittest