Skip make deps if cache hint in ci

This commit is contained in:
Waket Zheng 2024-06-06 17:35:00 +08:00
parent bceeb236c2
commit 24a2087b78
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -44,4 +44,5 @@ testall: deps _test_all
build: deps
@poetry build
ci: check _testall
_ci: _check _testall
ci: deps _ci