Skip to content

Commit

Permalink
only setup-python cache
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Nov 22, 2024
1 parent 82186d2 commit bd29500
Showing 1 changed file with 10 additions and 55 deletions.
65 changes: 10 additions & 55 deletions .github/workflows/integration-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- thomasht86/fix-integrationtest-vectorsearch
schedule:
- cron: "0 11 * * 0"

Expand All @@ -13,54 +14,18 @@ concurrency:
cancel-in-progress: false

jobs:
setup-environment:
runs-on: ubuntu-latest
outputs:
python-cache-key: ${{ steps.cache-python.outputs.cache-hit }}
steps:
- uses: actions/checkout@v4

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Cache dependencies
id: cache-python
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}

- name: Install dependencies
if: steps.cache-python.outputs.cache-hit != 'true'
run: |
pip install -e .[dev]
- name: Upload Python environment
uses: actions/upload-artifact@v3
with:
name: python-environment
path: ~/.cache/pip

integration-cloud:
runs-on: ubuntu-latest
needs: setup-environment
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.10"

- name: Download Python environment
uses: actions/download-artifact@v3
with:
name: python-environment
path: ~/.cache/pip

cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
Expand All @@ -73,21 +38,16 @@ jobs:
integration-cloud-token:
runs-on: ubuntu-latest
needs: setup-environment
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.10"

- name: Download Python environment
uses: actions/download-artifact@v3
with:
name: python-environment
path: ~/.cache/pip

cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
Expand All @@ -102,21 +62,16 @@ jobs:
integration-cloud-vector-search:
runs-on: ubuntu-latest
needs: setup-environment
steps:
- uses: actions/checkout@v4

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Download Python environment
uses: actions/download-artifact@v3
with:
name: python-environment
path: ~/.cache/pip

cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
Expand Down

0 comments on commit bd29500

Please sign in to comment.