Skip to content

Commit

Permalink
Merge pull request #3170 from dopplershift/checkout-updates
Browse files Browse the repository at this point in the history
Checkout updates
  • Loading branch information
dcamron authored Aug 30, 2023
2 parents 146361d + c8dfa06 commit c7124e6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 35 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cffcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Check validity of CITATION.cff
uses: citation-file-format/[email protected]
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/docs-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ jobs:
os: macOS

steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Install from Conda
uses: ./.github/actions/install-conda
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ jobs:
doc-version: ${{ steps.build-docs.outputs.doc-version }}

steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Install using PyPI
uses: ./.github/actions/install-pypi
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 10

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-tags: true

- name: Set up Python
id: setup
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ jobs:
os: [macOS, Windows]

steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Install from Conda
uses: ./.github/actions/install-conda
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ jobs:
no-extras: 'No Extras'

steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Generate minimum dependencies
if: ${{ matrix.dep-versions == 'Minimum' }}
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/unstable-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ jobs:
outputs:
result: ${{ steps.tests.outcome }}
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Assemble test requirements
run: |
Expand Down Expand Up @@ -59,14 +56,11 @@ jobs:
outputs:
result: ${{ steps.build.outcome }}
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fetch-depth: 150
fetch-tags: true

- name: Assemble doc requirements
run: |
Expand Down

0 comments on commit c7124e6

Please sign in to comment.