diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml new file mode 100644 index 00000000..cd6d6cd1 --- /dev/null +++ b/.github/workflows/unittests.yaml @@ -0,0 +1,40 @@ +name: unittests + +on: + push: + pull_request: + +jobs: + unittest: + runs-on: ${{ matrix.os }} + name: Test Python ${{ matrix.python.version }} ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + python: + - {version: '3.8'} + - {version: '3.9'} + - {version: '3.10'} + - {version: '3.11'} + - {version: '3.12'} + include: + - python: {version: '3.12'} # latest + os: windows-latest + - python: {version: '3.12'} # latest + os: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python.version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python.version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip flask + - name: Unittests + run: | + python -m unittest