name: macOS

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
            python-version: [2, 3.6, 3.7, 3.8]
            os: [macos-latest]

    steps:

    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
            python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
            brew install freetds
            python -m pip install --upgrade pip
            pip install -r requirements-dev.txt

    - name: build & install
      run: python setup.py build install

    - name: build wheel
      run: python setup.py bdist_wheel

name: macOS

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
            python-version: [2, 3.6, 3.7, 3.8]
            os: [macos-latest]

    steps:

    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
            python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
            brew install freetds
            pip install --upgrade pip
            pip install -r requirements-dev.txt

    - name: build wheel and sdist
      run: |
            pip wheel . -w dist
            python setup.py sdist

    - name: Archive wheels and sdist
      uses: actions/upload-artifact@v2
      with:
        name: pymssql-${{ runner.os }}-${{ github.sha }}
        path: dist

Build and upload macos artefacts
Build and upload macos artefacts
