netflow/.github/workflows/run_tests.yml

30 lines
605 B
YAML
Raw Normal View History

2022-12-03 08:55:20 +01:00
name: Run Python unit tests
2021-04-04 09:09:25 +02:00
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
test-netflow:
2022-12-03 08:55:20 +01:00
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
2021-04-04 09:09:25 +02:00
steps:
- uses: actions/checkout@v3
2022-12-03 08:55:20 +01:00
- name: Set up Python with pyenv
uses: gabrielfalcao/pyenv-action@v11
2021-04-04 09:09:25 +02:00
with:
default: "${{ matrix.python }}"
2022-12-03 08:55:20 +01:00
2021-04-04 09:09:25 +02:00
- name: Run Python unittests
run: python3 -m unittest