Skip to content

Commit

Permalink
fix cached poetry issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavsinghvi11 committed Jan 6, 2025
1 parent 29adcde commit 5c7dad9
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:
with:
path: ~/.local
key: poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Install dependencies
run: poetry install --no-interaction
Expand All @@ -91,15 +91,16 @@ jobs:
with:
path: ~/.local
key: poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Build
run: poetry build
- name: Install built package
Expand All @@ -121,14 +122,15 @@ jobs:
with:
path: ~/.local
key: poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: python -m pip install --upgrade poetry==${{ env.POETRY_VERSION }}

- name: Run setup.py build
run: python setup.py build

0 comments on commit 5c7dad9

Please sign in to comment.