From 24a2087b78af5106e7de69ab47ff09f572316ddf Mon Sep 17 00:00:00 2001 From: Waket Zheng Date: Thu, 6 Jun 2024 17:35:00 +0800 Subject: [PATCH] Skip make deps if cache hint in ci --- .github/workflows/ci.yml | 5 ++++- Makefile | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7346003..8060f22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,9 @@ jobs: run: | pip install -U pip poetry poetry config virtualenvs.create false + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: make deps - name: CI env: MYSQL_PASS: root @@ -43,4 +46,4 @@ jobs: POSTGRES_PASS: 123456 POSTGRES_HOST: 127.0.0.1 POSTGRES_PORT: 5432 - run: make ci + run: make _ci diff --git a/Makefile b/Makefile index 9e97a17..0f05d70 100644 --- a/Makefile +++ b/Makefile @@ -44,4 +44,5 @@ testall: deps _test_all build: deps @poetry build -ci: check _testall +_ci: _check _testall +ci: deps _ci