There's no 3.9.3, only 3.9.2, which is also the correct Debian version. 3.11.1 is available in pyenv 2.3.8, but 2.3.7 is currently in use by the Github action. So 3.11 is used, which uses the latest patch version
30 lines
652 B
YAML
30 lines
652 B
YAML
name: Run Python unit tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-netflow:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
python:
|
|
- "3.5.3" # Debian Stretch
|
|
- "3.7.3" # Debian Buster
|
|
- "3.9.2" # Debian Bullseye
|
|
- "3.11" # Debian Bookworm uses 3.11.1, but it's in a newer pyenv release
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python with pyenv
|
|
uses: gabrielfalcao/pyenv-action@v11
|
|
with:
|
|
default: "${{ matrix.python }}"
|
|
|
|
- name: Run Python unittests
|
|
run: python3 -m unittest
|