Skip to content

Commit bbc75ff

Browse files
committed
Update Github test workflow with matrix
1 parent a410ef7 commit bbc75ff

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/run_tests.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@ on:
44
push:
55
branches: [ master ]
66
pull_request:
7-
branches: [ master ]
87

98
workflow_dispatch:
109

1110
jobs:
12-
test:
11+
test-netflow:
1312
runs-on: ubuntu-20.04
13+
strategy:
14+
matrix:
15+
python:
16+
- "3.5.3" # Debian Stretch
17+
- "3.7.3" # Debian Buster
18+
- "3.9.3" # Debian Bullseye
19+
- "3.11.1" # Debian Bookworm
1420
steps:
15-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
1722

18-
- name: Set up Python 3.5.3
19-
uses: gabrielfalcao/pyenv-action@v7
23+
- name: Set up Python with pyenv
24+
uses: gabrielfalcao/pyenv-action@v11
2025
with:
21-
default: '3.5.3' # Debian Stretch (oldoldstable)
26+
default: "${{ matrix.python }}"
2227

2328
- name: Run Python unittests
2429
run: python3 -m unittest

0 commit comments

Comments
 (0)