name: ms

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  build:
    runs-on: windows-latest
    strategy:
      matrix:
          architectures: [x86, x64]
    steps:
    - uses: actions/checkout@v2
    - name: Setup Python
      uses: actions/setup-python@v4
      with:
        python-version: 3.7
        architecture: ${{ matrix.architecture }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install scipy
        pip install pythran-openblas pytest
    - name: Setup
      run: |
        python -m pip install .
        python -m pip install . 'pythran[test]'
    - name: Testing minimal CLI
      run: |
        pythran --version
        pythran --help
        pythran-config -vvv
    - name: Testing sequential
      run: |
        pytest pythran/tests/test_ndarray.py -v -x
        pytest pythran/tests/test_scipy.py -v -x
        pytest pythran/tests/test_base.py -v -x
        pytest pythran/tests/test_advanced.py -v -x
