name: Release Script

on:
    push:
        branches:
            - dev
            - release
    pull_request:

jobs:
    release_script_tests:
        runs-on: ubuntu-latest
        steps:
        - name: Setup Python environment
          uses: actions/setup-python@v1
          with:
              python-version: '2.7'
        - uses: actions/checkout@v2
          with:
            path: release
        - name: Setup Pipenv for development
          run: pipenv install --dev
        - name: Release Script unit tests
          run: pipenv run py.test

name: Release Script

on:
    push:
        branches:
            - dev
            - release
    pull_request:

jobs:
    release_script_tests:
        runs-on: ubuntu-latest
        steps:
        - name: Setup Python environment
          uses: actions/setup-python@v1
          with:
              python-version: '2.7'
        - uses: actions/checkout@v2
          with:
            path: release
        - name: Install Pipenv
          uses: dschep/install-pipenv-action@v1
        - name: Setup Pipenv for development
          run: pipenv install --dev
        - name: Release Script unit tests
          run: pipenv run py.test

Install Pipenv in release workflow
Install Pipenv in release workflow
