name: Tests (Windows)

on: [push, pull_request]

jobs:
  build:

    runs-on: windows-latest
    strategy:
      matrix:
        python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
    name: Python ${{ matrix.python-version }} (Windows)

    steps:
      - uses: actions/checkout@v3
      - name: Setup python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          architecture: x64
      - name: Check pip
        run: python -m pip --version
      - name: Update pip
        run: python -m pip install --user --upgrade pip
      - name: Install poetry
        run: pip install poetry
      - name: poetry install
        run: poetry install
      - name: create HTML output folder
        run: mkdir html
      - name: Integration tests
        run: make integration-tests
      - name: Integration tests (threaded)
        run: make integration-tests-threaded
      - name: Unit tests
        run: make unit-test
      - uses: codecov/codecov-action@v3
