Skip to content

Commit

Permalink
Update Github test workflow with matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkeks committed Jan 30, 2023
1 parent a410ef7 commit bbc75ff
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bbc75ff

Please sign in to comment.