From 607b845c58209633f7edb3279476a7845b835a65 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Fri, 26 Nov 2021 11:56:01 +0000 Subject: [PATCH] chore: Cache more pip dependencies. --- .github/workflows/superset-python-misc.yml | 9 +++++++++ .github/workflows/superset-python-presto-hive.yml | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/superset-python-misc.yml b/.github/workflows/superset-python-misc.yml index 4a38a95ee3a47..7f9ef14994b1f 100644 --- a/.github/workflows/superset-python-misc.yml +++ b/.github/workflows/superset-python-misc.yml @@ -33,6 +33,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements/testing.txt' - name: Install dependencies if: steps.check.outcome == 'failure' uses: ./.github/actions/cached-dependencies @@ -40,6 +42,7 @@ jobs: run: | apt-get-install pip-upgrade + pip install wheel pip install -r requirements/testing.txt - name: pylint if: steps.check.outcome == 'failure' @@ -62,12 +65,15 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements/integration.txt' - name: Install dependencies uses: ./.github/actions/cached-dependencies with: run: | apt-get-install pip-upgrade + pip install wheel pip install -r requirements/integration.txt - name: pre-commit run: pre-commit run --all-files @@ -88,12 +94,15 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements/base.txt' - name: Install dependencies uses: ./.github/actions/cached-dependencies with: run: | apt-get-install pip-upgrade + pip install wheel pip install -r requirements/base.txt - name: Test babel extraction run: flask fab babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _,__,t,tn,tct diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index 9177037822020..31043ea399378 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -62,6 +62,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements/testing.txt' - name: Install dependencies if: steps.check.outcome == 'failure' uses: ./.github/actions/cached-dependencies @@ -69,6 +71,7 @@ jobs: run: | apt-get-install pip-upgrade + pip install wheel pip install -r requirements/testing.txt setup-postgres - name: Run celery @@ -137,6 +140,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements/testing.txt' - name: Install dependencies if: steps.check.outcome == 'failure' uses: ./.github/actions/cached-dependencies @@ -144,6 +149,7 @@ jobs: run: | apt-get-install pip-upgrade + pip install wheel pip install -r requirements/testing.txt setup-postgres - name: Run celery