From c41b959cf87a307739d98afe207ed26665b28750 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Mon, 13 Jan 2025 12:47:29 +0100 Subject: [PATCH] Faster checkout with filter: tree:0 --- .github/workflows/benchmark.yml | 3 ++- .github/workflows/build-wheels.yml | 1 + .github/workflows/build_and_test.yml | 1 + .github/workflows/dark_storage_benchmark.yml | 3 ++- .github/workflows/run_ert_test_data_setups.yml | 1 + .github/workflows/style.yml | 1 + .github/workflows/test_ert.yml | 3 ++- .github/workflows/test_everest.yml | 1 + .github/workflows/test_semeio.yml | 1 + .github/workflows/typing.yml | 1 + 10 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 19969257e81..20dc3b2ee9b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,7 +23,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true submodules: true lfs: true diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index ea1d732be3e..67ee3cc4e5b 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + filter: tree:0 - uses: actions/setup-python@v5 with: diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 457cbecc6ca..fc641efb38f 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -162,6 +162,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + filter: tree:0 - uses: './.github/actions/install_dependencies' with: diff --git a/.github/workflows/dark_storage_benchmark.yml b/.github/workflows/dark_storage_benchmark.yml index 394f49ce95c..4607fa41cd5 100644 --- a/.github/workflows/dark_storage_benchmark.yml +++ b/.github/workflows/dark_storage_benchmark.yml @@ -24,7 +24,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true submodules: true lfs: true ref: gh-pages diff --git a/.github/workflows/run_ert_test_data_setups.yml b/.github/workflows/run_ert_test_data_setups.yml index 3102d8e7cd4..6f2f2a0b0d0 100644 --- a/.github/workflows/run_ert_test_data_setups.yml +++ b/.github/workflows/run_ert_test_data_setups.yml @@ -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 diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index db90b4fc868..e070f363049 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -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 diff --git a/.github/workflows/test_ert.yml b/.github/workflows/test_ert.yml index 9e0da2f02d7..748e1cc0da9 100644 --- a/.github/workflows/test_ert.yml +++ b/.github/workflows/test_ert.yml @@ -21,7 +21,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + fetch-tags: true submodules: true lfs: true diff --git a/.github/workflows/test_everest.yml b/.github/workflows/test_everest.yml index 7444e3000bd..f3dfb60f845 100644 --- a/.github/workflows/test_everest.yml +++ b/.github/workflows/test_everest.yml @@ -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 diff --git a/.github/workflows/test_semeio.yml b/.github/workflows/test_semeio.yml index b62769f6619..de0fa6469b0 100644 --- a/.github/workflows/test_semeio.yml +++ b/.github/workflows/test_semeio.yml @@ -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 diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 9038b099d9c..5a6b9c4b278 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -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