Skip to content

Commit

Permalink
Use fetch-depth: 0 - it adds just 1sec more
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Oct 13, 2023
1 parent cf92641 commit e0cf70e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/GithubActionTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: set path
run: echo "/opt/mambaforge/bin" >> $GITHUB_PATH
Expand All @@ -42,8 +44,7 @@ jobs:
run: |
eval "$(conda shell.bash hook)"
conda activate bioconda
git fetch origin master:refs/remotes/origin/master
if git diff --name-only HEAD..origin/master | grep -vE ^docs; then
if git diff --name-only origin/master...HEAD | grep -vE ^docs; then
py.test --durations=0 test/ -v --log-level=DEBUG --tb=native -m '${{ matrix.py_test_marker }}'
else
echo "Skipping pytest - only docs modified"
Expand All @@ -53,6 +54,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: set path
run: echo "/opt/mambaforge/bin" >> $GITHUB_PATH
Expand All @@ -71,8 +74,7 @@ jobs:
run: |
eval "$(conda shell.bash hook)"
conda activate bioconda
git fetch origin master:refs/remotes/origin/master
if git diff --name-only HEAD..origin/master | grep -vE ^docs; then
if git diff --name-only origin/master...HEAD | grep -vE ^docs; then
py.test --durations=0 test/ -v --log-level=DEBUG -k "not docker" --tb=native
else
echo "Skipping pytest - only docs modified"
Expand Down

0 comments on commit e0cf70e

Please sign in to comment.