Skip to content

Commit

Permalink
Faster checkout with filter: tree:0 and shallow depth
Browse files Browse the repository at this point in the history
This uses a bit of a hack for checking out with sub modules
where we assume the latest version tag is no more than
1024 commits ago.
  • Loading branch information
eivindjahren committed Jan 13, 2025
1 parent 4480295 commit ff1ef51
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
lfs: true

- uses: actions/setup-python@v5
id: setup_python
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- uses: actions/setup-python@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- uses: './.github/actions/install_dependencies'
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dark_storage_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1024
fetch-tags: true
submodules: true
lfs: true
ref: gh-pages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_ert_test_data_setups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_ert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1024
fetch-tags: true
submodules: true
lfs: true

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_everest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_semeio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down

0 comments on commit ff1ef51

Please sign in to comment.