Skip to content

Commit

Permalink
🪲 Fixing Installing Poetry in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbianic committed Jan 16, 2023
1 parent 3cb1f5b commit 2fab079
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Install Poetry
run: |
python -m pip install pipx
pipx ensurepath
pipx install poetry
poetry export --with workflows --without-hashes --format=constraints.txt > .github/workflows/constraints.txt
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
Expand All @@ -39,7 +41,7 @@ jobs:
- name: Detect and tag new version
id: check-version
if: steps.check-parent-commit.outputs.sha
if: ${{ steps.check-parent-commit.output.sha }}
uses: salsify/action-detect-and-tag-new-version@v2.0.3
with:
version-command: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:

- name: Install Poetry
run: |
python -m pip install pipx
pipx ensurepath
pipx install poetry
poetry export --with workflows --without-hashes --format=constraints.txt > .github/workflows/constraints.txt
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
Expand Down Expand Up @@ -204,6 +206,8 @@ jobs:

- name: Install Poetry
run: |
python -m pip install pipx
pipx ensurepath
pipx install poetry
poetry export --with workflows --without-hashes --format=constraints.txt > .github/workflows/constraints.txt
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
Expand Down
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ build:
python: "3.11"
jobs:
post_install:
- python -m pip install pipx
- pipx ensurepath
- pipx install poetry==1.2.0b1
- poetry config virtualenvs.create false
- poetry install --with docs
Expand Down

0 comments on commit 2fab079

Please sign in to comment.