Skip to content

Commit

Permalink
disable poetry install from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecarenzo committed Sep 18, 2023
1 parent 49340fa commit b1fdf64
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/python_test_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,30 @@ jobs:
with:
python-version: 3.9

# Prepare Poetry from cache
# - name: Attempt Poetry install from cache
# uses: actions/cache@v3
# id: cached-poetry
# with:
# path: ./.poetry
# key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::poetry
# - name: Install Poetry
# if: steps.cached-poetry.outputs.cache-hit != 'true'
# run: |
# python -m venv .poetry
# source ./.poetry/bin/activate
# pip install poetry
# mkdir ./.poetry/.bin
# ln -s ./.poetry/bin/poetry ./.poetry/.bin/poetry
# deactivate
# - name: Add Poetry to PATH
# run: echo "$PWD/.poetry/.bin" >> $GITHUB_PATH

# Prepare Poetry
- name: Attempt Poetry install from cache
uses: actions/cache@v3
id: cached-poetry
with:
path: ./.poetry
key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::poetry
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: |
python -m venv .poetry
source ./.poetry/bin/activate
pip install poetry
mkdir ./.poetry/.bin
ln -s ./.poetry/bin/poetry ./.poetry/.bin/poetry
deactivate
run: curl -sSL https://install.python-poetry.org/ | python -
- name: Add Poetry to PATH
run: echo "$PWD/.poetry/.bin" >> $GITHUB_PATH
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH

# Prepare Virtual Environment
- name: Configure Poetry
Expand Down
36 changes: 21 additions & 15 deletions .github/workflows/python_test_explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,30 @@ jobs:
with:
python-version: 3.9

# Prepare Poetry from cache
# - name: Attempt Poetry install from cache
# uses: actions/cache@v3
# id: cached-poetry
# with:
# path: ./.poetry
# key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::poetry
# - name: Install Poetry
# if: steps.cached-poetry.outputs.cache-hit != 'true'
# run: |
# python -m venv .poetry
# source ./.poetry/bin/activate
# pip install poetry
# mkdir ./.poetry/.bin
# ln -s ./.poetry/bin/poetry ./.poetry/.bin/poetry
# deactivate
# - name: Add Poetry to PATH
# run: echo "$PWD/.poetry/.bin" >> $GITHUB_PATH

# Prepare Poetry
- name: Attempt Poetry install from cache
uses: actions/cache@v3
id: cached-poetry
with:
path: ./.poetry
key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::poetry
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: |
python -m venv .poetry
source ./.poetry/bin/activate
pip install poetry
mkdir ./.poetry/.bin
ln -s ./.poetry/bin/poetry ./.poetry/.bin/poetry
deactivate
run: curl -sSL https://install.python-poetry.org/ | python -
- name: Add Poetry to PATH
run: echo "$PWD/.poetry/.bin" >> $GITHUB_PATH
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH

# Prepare Virtual Environment
- name: Configure Poetry
Expand Down

0 comments on commit b1fdf64

Please sign in to comment.