Skip to content

Python Unit tests

Python Unit tests #15

name: Python Unit tests
on:
push:
paths:
- '**.py'
pull_request:
paths:
- '**.py'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Python unit tests
run: |
python3 tests/unittests.py