Skip to content

Commit

Permalink
added checkout of head branch if PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tannermpeterson committed Aug 17, 2020
1 parent 5ccc9f4 commit dbe0d90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dev-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 1

- name: Set up Python
Expand Down Expand Up @@ -106,6 +107,12 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: true

# - name: Checkout head branch (if Pull Request)
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.event_name == 'pull_request'
# run: |
# git fetch origin $GITHUB_HEAD_REF
# git checkout $GITHUB_HEAD_REF

- name: Run prerelease to check packaging compatibilty
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7
run: prerelease --no-input

0 comments on commit dbe0d90

Please sign in to comment.