name: CI

on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install
      run: |
        python -m pip install --upgrade pip
        pip install poetry
        poetry install -v
    - name: Run tests
      run: poetry run pytest
    - name: Run unit tests with coverage
      if: ${{ matrix.python-version == 3.9 }}
      run: poetry run coverage run -m pytest shakespearelang/tests/unit/
    - uses: paambaati/codeclimate-action@v2.7.5
      if: ${{ matrix.python-version == 3.9 }}
      env:
        CC_TEST_REPORTER_ID: 5822386b50d7a5144fa9ea28cf5f0328d2f9df1fa7bde4a3ed6a82a6ac7f4ca8
      with:
        coverageCommand: poetry run coverage xml
        debug: true

name: CI

on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install
      run: |
        python -m pip install --upgrade pip
        pip install poetry
        poetry install -v
    - name: Run tests
      run: poetry run pytest
    - name: Run unit tests with coverage
      if: ${{ matrix.python-version == 3.9 }}
      run: poetry run coverage run -m pytest shakespearelang/tests/unit/
    - uses: paambaati/codeclimate-action@v2.7.5
      if: ${{ matrix.python-version == 3.9 }}
      env:
        CC_TEST_REPORTER_ID: 5822386b50d7a5144fa9ea28cf5f0328d2f9df1fa7bde4a3ed6a82a6ac7f4ca8
      with:
        coverageCommand: poetry run coverage xml
        debug: true

Update CI to use new default branch
Update CI to use new default branch
