name: Build and test on Windows

on: [push, pull_request]

jobs:
  build:

    runs-on: windows-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install .
    - name: Test with pytest
      run: |
        git clone --depth=1 https://github.com/atmtools/typhon-testfiles.git
        "set TYPHONTESTFILES=%cd%\\typhon-testfiles"
        pip install pytest
        pytest --pyargs typhon

Add Windows build and test action
Add Windows build and test action
