From 02e853b00d18472ba25c0fc2491daf539706e2d8 Mon Sep 17 00:00:00 2001 From: Carlos Segarra Date: Wed, 6 Dec 2023 19:43:43 +0000 Subject: [PATCH] gha: faster submodule init --- .github/workflows/tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20a8dad..d79da5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,8 +26,6 @@ jobs: with: submodules: true # --- Formatting --- - - name: "Install faasmctl" - run: pip3 install $(cat ./requirements.txt | grep faasmctl | tr -d '\n') - name: "Format code" run: ./bin/inv_wrapper.sh format-code --check @@ -42,8 +40,6 @@ jobs: steps: - name: "Checkout code" uses: actions/checkout@v4 - with: - submodules: true # Check if any of the submodules have been modified - uses: dorny/paths-filter@v2 id: filter @@ -55,6 +51,8 @@ jobs: - name: "Get CPP/Python commits" id: submodule-commit run: | + git submodule update --init ./cpp + git submodule update --init ./python sudo apt install -y zstd git config --global --add safe.directory "$GITHUB_WORKSPACE" echo "cpp-commit=$(git submodule status ./cpp | cut '-d ' -f 2)" >> $GITHUB_OUTPUT