name: CI (conda)
on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
        python-version: [2.7, 3.6, 3.7, 3.8]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: goanpeca/setup-miniconda@v1
        with:
         auto-update-conda: true
         python-version: ${{ matrix.python-version }}
      - name: Conda env
        shell: pwsh
        run: conda env create --file environment.yml
      - name: Conda activate
        run: conda activate jupytext-dev
      - name: Lint with flake8
        run: |
          # stop the build if there are Python syntax errors or undefined names
          flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
          all Python files should follow PEP8 (except some notebooks, see setup.cfg)
          flake8 jupytext tests
          # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
          flake8 . --count --exit-zero --max-complexity=10 --statistics
      - name: Test with pytest
        run: |
          coverage run --source=. -m py.test
      - name: Upload coverage
        run: |
          coverage report -m

name: CI (conda)
on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
        python-version: [2.7, 3.6, 3.7, 3.8]

    runs-on: ${{ matrix.os }}

    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Miniconda
        uses: goanpeca/setup-miniconda@v1
        with:
          auto-update-conda: true
          python-version: ${{ matrix.python-version }}
      - name: Debug
        run: |
          # Show path and content
          pwd
          tree -L 1
      - name: Create conda env
        run: conda env create --file environment.yml
      - name: Conda activate
        run: conda activate jupytext-dev
      - name: Lint with flake8
        run: |
          # stop the build if there are Python syntax errors or undefined names
          flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
          all Python files should follow PEP8 (except some notebooks, see setup.cfg)
          flake8 jupytext tests
          # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
          flake8 . --count --exit-zero --max-complexity=10 --statistics
      - name: Install from source (required for the pre-commit tests)
        run: pip install .
      - name: Test with pytest
        run: |
          coverage run --source=. -m py.test
      - name: Upload coverage
        run: |
          coverage report -m

Add checkout and debug step, removed explicit shell name
Add checkout and debug step, removed explicit shell name
