name: gcld3

on: [push]

jobs:
  ubuntu:
    runs-on: ubuntu-latest
    steps:
      - name: OS Dependencies
        run: sudo apt-get install libprotobuf-dev protobuf-compiler python3-dev

  macos:
    runs-on: macos-latest
    steps:
      - name: OS Dependencies
        run: brew install protobuf

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

    steps:
    - uses: actions/checkout@v2

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

    - name: Display Python version
      run: python -c "import sys; print(sys.version)"

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

    - name: Build package
      run: |
        pip install setuptools
        python setup.py install

    - name:  Test with pytest
      run: |
        pip install pytest pytest-cov
        pytest src/python/gcld3_test.py

name: gcld3

on: [push]

jobs:

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

    steps:
    - uses: actions/checkout@v2
  
    - name: OS Dependencies
      run: sudo apt-get install libprotobuf-dev protobuf-compiler python3-dev

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

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

    - name: Build package
      run: |
        pip install setuptools
        python setup.py install

    - name:  Test with pytest
      run: |
        pip install pytest pytest-cov
        pytest src/python/gcld3_test.py


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

    steps:
    - uses: actions/checkout@v2
  
    - name: OS Dependencies
      run: brew install protobuf

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

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

    - name: Build package
      run: |
        pip install setuptools
        python setup.py install

    - name:  Test with pytest
      run: |
        pip install pytest pytest-cov
        pytest src/python/gcld3_test.py

Define a job for each OS
Define a job for each OS