Skip to content

Commit dbe0d90

Browse files
added checkout of head branch if PR
1 parent 5ccc9f4 commit dbe0d90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/dev-test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- name: Checkout
4242
uses: actions/checkout@v2
4343
with:
44+
ref: ${{ github.head_ref }}
4445
fetch-depth: 1
4546

4647
- name: Set up Python
@@ -106,6 +107,12 @@ jobs:
106107
name: codecov-umbrella
107108
fail_ci_if_error: true
108109

110+
# - name: Checkout head branch (if Pull Request)
111+
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.event_name == 'pull_request'
112+
# run: |
113+
# git fetch origin $GITHUB_HEAD_REF
114+
# git checkout $GITHUB_HEAD_REF
115+
109116
- name: Run prerelease to check packaging compatibilty
110117
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7
111118
run: prerelease --no-input

0 commit comments

Comments
 (0)