name: Coverage
on:
  push:
    branches:
      - master
  pull_request:
  schedule:
    - cron: 0 0 * * *

jobs:
  Coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Python environment
        uses: actions/setup-python@v2.1.4
        with:
          python-version: '3.7'
      - name: Install Requirements
        run: |
          python -m pip install --upgrade pip
          pip install coverage pytest
          pip install -r requirements.txt
          pip install -r test/requirements.txt
          python setup.py install
      - name: Generate Unit Test Coverage
        run: |
          coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py
          coverage xml
      - name: Publish Coverage
        uses: codecov/codecov-action@v1.0.14
        with:
          flags: unit
          fail_ci_if_error: true
name: Coverage
on:
  push:
    branches:
      - main
  pull_request:
  schedule:
    - cron: 0 0 * * *

jobs:
  Coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Python environment
        uses: actions/setup-python@v2.1.4
        with:
          python-version: '3.7'
      - name: Install Requirements
        run: |
          python -m pip install --upgrade pip
          pip install coverage pytest
          pip install -r requirements.txt
          pip install -r test/requirements.txt
          python setup.py install
      - name: Generate Unit Test Coverage
        run: |
          coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py
          coverage xml
      - name: Publish Coverage
        uses: codecov/codecov-action@v1.0.14
        with:
          flags: unit
          fail_ci_if_error: true
Migrate primary branch to `main`
Migrate primary branch to `main`

- Following the lead of GitHub per https://www.zdnet.com/article/github-to-replace-master-with-main-starting-next-month/
