Skip to content

Commit

Permalink
Enable fetch depth on both GHA and Azure.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Mar 30, 2021
1 parent 644493d commit 847571f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
# A minimum depth of 2 is required, as the HEAD is the auto-merge commit
# and we need the last commit from the PR to report the coverage.
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v2
Expand Down
3 changes: 3 additions & 0 deletions azure-pipelines/run_test_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ parameters:
steps:
- checkout: self
clean: true
# A minimum depth of 2 is required, as the HEAD is the auto-merge commit
# and we need the last commit from the PR to report the coverage.
fetchDepth: 2

- task: UsePythonVersion@0
displayName: "Use Python ${{ parameters.pythonVersion }}"
Expand Down

0 comments on commit 847571f

Please sign in to comment.