From dbe0d9005d6f44e62613e18fbb2e7d6a377befb1 Mon Sep 17 00:00:00 2001 From: tanner Date: Mon, 17 Aug 2020 21:18:55 +0000 Subject: [PATCH] added checkout of head branch if PR --- .github/workflows/dev-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dev-test.yaml b/.github/workflows/dev-test.yaml index 7caefa4..a8b4f57 100644 --- a/.github/workflows/dev-test.yaml +++ b/.github/workflows/dev-test.yaml @@ -41,6 +41,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: + ref: ${{ github.head_ref }} fetch-depth: 1 - name: Set up Python @@ -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 \ No newline at end of file