Skip to content

Commit 2304ba5

Browse files
authored
Merge pull request #556 from sanders41/ci
Switch to pipx to install poetry in CI/CD
2 parents eb18db0 + a9bac78 commit 2304ba5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/pypi_publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
uses: actions/setup-python@v4
1313
with:
1414
python-version: 3.11
15-
- name: Install Poetry and add to path
15+
- name: Install Poetry
1616
run: |
17-
curl -sSL https://install.python-poetry.org/install-poetry.py | python -
18-
echo "${HOME}/.local/bin" >> $GITHUB_PATH
17+
pip install pipx
18+
pipx install poetry
1919
- name: Install Dependencies
2020
run: |
2121
poetry install

.github/workflows/testing.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Get full Python version
2020
id: full-python-version
2121
run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT
22-
- name: Install Poetry and add to path
22+
- name: Install Poetry
2323
run: |
24-
curl -sSL https://install.python-poetry.org/install-poetry.py | python -
25-
echo "${HOME}/.local/bin" >> $GITHUB_PATH
24+
pip install pipx
25+
pipx install poetry
2626
- name: Configure poetry
2727
run: |
2828
poetry config virtualenvs.create true
@@ -59,10 +59,10 @@ jobs:
5959
- name: Get full Python version
6060
id: full-python-version
6161
run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT
62-
- name: Install Poetry and add to path
62+
- name: Install Poetry
6363
run: |
64-
curl -sSL https://install.python-poetry.org/install-poetry.py | python -
65-
echo "${HOME}/.local/bin" >> $GITHUB_PATH
64+
pip install pipx
65+
pipx install poetry
6666
- name: Configure poetry
6767
run: |
6868
poetry config virtualenvs.create true
@@ -100,10 +100,10 @@ jobs:
100100
- name: Get full Python version
101101
id: full-python-version
102102
run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT
103-
- name: Install Poetry and add to path
103+
- name: Install Poetry
104104
run: |
105-
curl -sSL https://install.python-poetry.org/install-poetry.py | python -
106-
echo "${HOME}/.local/bin" >> $GITHUB_PATH
105+
pip install pipx
106+
pipx install poetry
107107
- name: Configure poetry
108108
run: |
109109
poetry config virtualenvs.create true

0 commit comments

Comments
 (0)